Permalink
Browse files

btrfs: Modify btrfs availability to test if the kernel supports btrfs.

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...
1 parent 4ba6aa3 commit 011666ae77b765b1a2b6b8e804d1cc1552f23e41 @rwmjones rwmjones committed Jun 9, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 daemon/btrfs.c
View
2 daemon/btrfs.c
@@ -31,7 +31,7 @@
int
optgroup_btrfs_available (void)
{
- return prog_exists ("btrfs");
+ return prog_exists ("btrfs") && filesystem_available ("btrfs") > 0;
}
/* Takes optional arguments, consult optargs_bitmask. */

0 comments on commit 011666a

Please sign in to comment.