Skip to content

Commit

Permalink
btrfs: Modify btrfs availability to test if the kernel supports btrfs.
Browse files Browse the repository at this point in the history
This is closer to the real meaning of "availability of btrfs", since
just having the btrfs tool doesn't help much if it's not supported by
the kernel too.
  • Loading branch information
rwmjones committed Jun 9, 2012
1 parent 4ba6aa3 commit 011666a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion daemon/btrfs.c
Expand Up @@ -31,7 +31,7 @@
int int
optgroup_btrfs_available (void) optgroup_btrfs_available (void)
{ {
return prog_exists ("btrfs"); return prog_exists ("btrfs") && filesystem_available ("btrfs") > 0;
} }


/* Takes optional arguments, consult optargs_bitmask. */ /* Takes optional arguments, consult optargs_bitmask. */
Expand Down

0 comments on commit 011666a

Please sign in to comment.