diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2012-06-09 14:46:07 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2012-06-09 14:52:39 +0100 |
commit | 011666ae77b765b1a2b6b8e804d1cc1552f23e41 (patch) | |
tree | c36b5f7dbc7d36a020c398e8bc22a0711222817f /daemon | |
parent | 4ba6aa3eaeb112a1468ad9189120d12e1df23709 (diff) | |
download | libguestfs-011666ae77b765b1a2b6b8e804d1cc1552f23e41.tar.gz libguestfs-011666ae77b765b1a2b6b8e804d1cc1552f23e41.tar.xz libguestfs-011666ae77b765b1a2b6b8e804d1cc1552f23e41.zip |
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.
Diffstat (limited to 'daemon')
-rw-r--r-- | daemon/btrfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
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. */ |