From 49cb98e5d6989055860eee06879c10896489062f Mon Sep 17 00:00:00 2001 From: David Sterba Date: Mon, 31 Oct 2016 10:34:37 +0100 Subject: btrfs-progs: rename lookup_ino_rootid It does not resolve the inode number but path where fd has been opened. Signed-off-by: David Sterba --- utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'utils.c') diff --git a/utils.c b/utils.c index 3f54245b..3e1eb45f 100644 --- a/utils.c +++ b/utils.c @@ -2927,7 +2927,7 @@ path: fd = open(p, O_RDONLY); if (fd < 0) goto err; - ret = lookup_ino_rootid(fd, &id); + ret = lookup_path_rootid(fd, &id); if (ret) error("failed to lookup root id: %s", strerror(-ret)); close(fd); @@ -3609,7 +3609,7 @@ int ask_user(const char *question) * - BTRFS_EMPTY_SUBVOL_DIR_OBJECTID (directory with ino == 2) the result is * undefined and function returns -1 */ -int lookup_ino_rootid(int fd, u64 *rootid) +int lookup_path_rootid(int fd, u64 *rootid) { struct btrfs_ioctl_ino_lookup_args args; int ret; -- cgit v1.2.3