Commit 8ddf877b by Stéphane Graber

bdev: Rename mount_unknow_fs to mount_unknown_fs

parent b2a3f33e
......@@ -146,7 +146,7 @@ static int find_fstype_cb(char* buffer, void *data)
return 1;
}
static int mount_unknow_fs(const char *rootfs, const char *target, int mntopt)
static int mount_unknown_fs(const char *rootfs, const char *target, int mntopt)
{
int i;
......@@ -289,7 +289,7 @@ static int detect_fs(struct bdev *bdev, char *type, int len)
if (unshare(CLONE_NEWNS) < 0)
exit(1);
ret = mount_unknow_fs(srcdev, bdev->dest, 0);
ret = mount_unknown_fs(srcdev, bdev->dest, 0);
if (ret < 0) {
ERROR("failed mounting %s onto %s to detect fstype", srcdev, bdev->dest);
exit(1);
......@@ -780,8 +780,8 @@ static int lvm_mount(struct bdev *bdev)
if (!bdev->src || !bdev->dest)
return -22;
/* if we might pass in data sometime, then we'll have to enrich
* mount_unknow_fs */
return mount_unknow_fs(bdev->src, bdev->dest, 0);
* mount_unknown_fs */
return mount_unknown_fs(bdev->src, bdev->dest, 0);
}
static int lvm_umount(struct bdev *bdev)
......@@ -1506,7 +1506,7 @@ static int loop_mount(struct bdev *bdev)
goto out;
}
ret = mount_unknow_fs(loname, bdev->dest, 0);
ret = mount_unknown_fs(loname, bdev->dest, 0);
if (ret < 0)
ERROR("Error mounting %s\n", bdev->src);
else
......
......@@ -451,7 +451,7 @@ static int find_fstype_cb(char* buffer, void *data)
return 1;
}
static int mount_unknow_fs(const char *rootfs, const char *target, int mntopt)
static int mount_unknown_fs(const char *rootfs, const char *target, int mntopt)
{
int i;
......@@ -585,7 +585,7 @@ static int mount_rootfs_file(const char *rootfs, const char *target)
ret = setup_lodev(rootfs, fd, &loinfo);
if (!ret)
ret = mount_unknow_fs(path, target, 0);
ret = mount_unknown_fs(path, target, 0);
close(fd);
break;
......@@ -599,7 +599,7 @@ static int mount_rootfs_file(const char *rootfs, const char *target)
static int mount_rootfs_block(const char *rootfs, const char *target)
{
return mount_unknow_fs(rootfs, target, 0);
return mount_unknown_fs(rootfs, target, 0);
}
/*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment