]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
Revert "ubifs: Allow ubifsmount volume reference by number"
authorMichal Simek <michal.simek@xilinx.com>
Wed, 23 Jan 2013 10:32:54 +0000 (11:32 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 29 Jan 2013 12:28:13 +0000 (13:28 +0100)
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>
fs/ubifs/super.c

index 9acf243eeff42bf88f56a23ef8d7258ac1f4692f..30ccd98c22b3942bbb2a909a18d0ff3516953260 100644 (file)
@@ -1164,9 +1164,10 @@ static struct file_system_type ubifs_fs_type = {
        .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;
@@ -1185,6 +1186,7 @@ int ubifs_mount(char *name)
         * 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);