This reverts commit
6e7cf45d9c9473ef52b36527ddd1538f5eda3c1e.
We are not using ubi support that's why let's revert this
patch and be in sync with mainline.
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
.get_sb = ubifs_get_sb,
};
-int ubifs_mount(char *name)
+int ubifs_mount(char *vol_name)
{
int flags;
+ char name[80] = "ubi:";
void *data;
struct vfsmount *mnt;
int ret;
* Mount in read-only mode
*/
flags = MS_RDONLY;
+ strcat(name, vol_name);
data = NULL;
mnt = NULL;
ret = ubifs_get_sb(&ubifs_fs_type, flags, name, data, mnt);