summaryrefslogtreecommitdiff
path: root/cmds-subvolume.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmds-subvolume.c')
-rw-r--r--cmds-subvolume.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmds-subvolume.c b/cmds-subvolume.c
index 6ff41e26..d4ef1021 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)