[gparted/lucab/btrfs: 4/4] List Btrfs capabilities in filesystems table



commit 7712506723b9f093285231af6ab66adaad2075bb
Author: Luca Bruno <lucab debian org>
Date:   Mon Jan 4 16:02:55 2010 +0100

    List Btrfs capabilities in filesystems table
    
    When enabled, show Btrfs capabilities in features table, without skipping
    it like other multi-volume systems.

 src/DialogFeatures.cc |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/DialogFeatures.cc b/src/DialogFeatures.cc
index fcb3b3f..c570ea5 100644
--- a/src/DialogFeatures.cc
+++ b/src/DialogFeatures.cc
@@ -105,8 +105,11 @@ void DialogFeatures::load_filesystems( const std::vector<FS> & FILESYSTEMS )
 	//fill the features chart with valid file systems 
 	for ( unsigned short t = 0; t < FILESYSTEMS .size() ; t++ )
 	{
-		//Skip btrfs, luks, lvm2, and unknown because these are not file systems
-		if ( FILESYSTEMS[ t ] .filesystem == GParted::FS_BTRFS ||
+		//Skip luks, lvm2, and unknown because these are not file systems
+		if (
+#ifndef BTRFS_SUPPORT
+		     FILESYSTEMS[ t ] .filesystem == GParted::FS_BTRFS ||
+#endif
 		     FILESYSTEMS[ t ] .filesystem == GParted::FS_LUKS ||
 		     FILESYSTEMS[ t ] .filesystem == GParted::FS_LVM2 ||
 		     FILESYSTEMS[ t ] .filesystem == GParted::FS_UNKNOWN



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]