summaryrefslogtreecommitdiff
path: root/utils.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2016-10-31 10:34:37 +0100
committerDavid Sterba <dsterba@suse.com>2016-11-09 13:47:28 +0100
commit49cb98e5d6989055860eee06879c10896489062f (patch)
tree2c2793bfb6d1ec1d55654eeb90967d49cc228a0b /utils.c
parent3fe243296df75de895c43e9a24e9b6a773555064 (diff)
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 <dsterba@suse.com>
Diffstat (limited to 'utils.c')
-rw-r--r--utils.c4
1 files changed, 2 insertions, 2 deletions
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;