From 011666ae77b765b1a2b6b8e804d1cc1552f23e41 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Sat, 9 Jun 2012 14:46:07 +0100 Subject: 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. --- daemon/btrfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/btrfs.c b/daemon/btrfs.c index b9b88dd1..411fdeaa 100644 --- a/daemon/btrfs.c +++ b/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. */ -- cgit