diff options
author | David Sterba <dsterba@suse.com> | 2016-01-13 18:08:34 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-01-14 11:07:10 +0100 |
commit | 33ac47b5fb0b7202ac32b6ab018a5212b790c4f1 (patch) | |
tree | 38b41387b7bf3e5ebbf4eafaf8214743336091c5 | |
parent | 5b56fe9db5cc69d9ce2c125ab86c6546ae4e7323 (diff) | |
download | btrfs-progs-33ac47b5fb0b7202ac32b6ab018a5212b790c4f1.tar.gz |
btrfs-progs: use symbolic name for subvolume inode number in test_issubvolume
Signed-off-by: David Sterba <dsterba@suse.com>
-rw-r--r-- | cmds-subvolume.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmds-subvolume.c b/cmds-subvolume.c index 6ff41e2..d4ef102 100644 --- a/cmds-subvolume.c +++ b/cmds-subvolume.c @@ -238,7 +238,8 @@ int test_issubvolume(char *path) if(res < 0 ) return -1; - return (st.st_ino == 256) && S_ISDIR(st.st_mode); + return (st.st_ino == BTRFS_FIRST_FREE_OBJECTID) + && S_ISDIR(st.st_mode); } static int wait_for_commit(int fd) |