"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/Utils.cc" between
gparted-1.1.0.tar.gz and gparted-1.2.0.tar.gz

About: GParted is a graphical partition editor for creating, reorganizing, and deleting disk partitions (using GNU libparted).

Utils.cc  (gparted-1.1.0):Utils.cc  (gparted-1.2.0)
skipping to change at line 257 skipping to change at line 257
return 0; return 0;
} }
int Utils::get_filesystem_label_maxlength(FSType fstype) int Utils::get_filesystem_label_maxlength(FSType fstype)
{ {
switch (fstype) switch (fstype)
{ {
//All file systems commented out are not supported for labelling //All file systems commented out are not supported for labelling
// by either the new partition or label partition operations. // by either the new partition or label partition operations.
case FS_BTRFS : return 255 ; case FS_BTRFS : return 255 ;
//case FS_EXFAT : return ; case FS_EXFAT : return 11;
case FS_EXT2 : return 16 ; case FS_EXT2 : return 16 ;
case FS_EXT3 : return 16 ; case FS_EXT3 : return 16 ;
case FS_EXT4 : return 16 ; case FS_EXT4 : return 16 ;
// mkfs.f2fs supports labels up to 512 characters, however only b lkid is // mkfs.f2fs supports labels up to 512 characters, however only b lkid is
// used to read the label and that only displays the first 127 ch aracters. // used to read the label and that only displays the first 127 ch aracters.
case FS_F2FS : return 127; case FS_F2FS : return 127;
case FS_FAT16 : return 11 ; case FS_FAT16 : return 11 ;
case FS_FAT32 : return 11 ; case FS_FAT32 : return 11 ;
//mkfs.hfsplus can create hfs and hfs+ file systems with labels u p to 255 //mkfs.hfsplus can create hfs and hfs+ file systems with labels u p to 255
// characters. However there is no specific tool to read the la bels and // characters. However there is no specific tool to read the la bels and
skipping to change at line 426 skipping to change at line 426
case FS_UDF : return "udf"; case FS_UDF : return "udf";
case FS_XFS : return "xfs"; case FS_XFS : return "xfs";
default : return ""; default : return "";
} }
} }
Glib::ustring Utils::get_filesystem_software(FSType fstype) Glib::ustring Utils::get_filesystem_software(FSType fstype)
{ {
switch (fstype) switch (fstype)
{ {
case FS_BTRFS : return "btrfs-progs / btrfs-tools" ; case FS_BTRFS: return "btrfs-progs / btrfs-tools";
case FS_EXT2 : return "e2fsprogs" ; case FS_EXFAT: return "exfatprogs";
case FS_EXT3 : return "e2fsprogs" ; case FS_EXT2: return "e2fsprogs";
case FS_EXT4 : return "e2fsprogs v1.41+" ; case FS_EXT3: return "e2fsprogs";
case FS_F2FS : return "f2fs-tools" ; case FS_EXT4: return "e2fsprogs v1.41+";
case FS_FAT16 : return "dosfstools, mtools" ; case FS_F2FS: return "f2fs-tools";
case FS_FAT32 : return "dosfstools, mtools" ; case FS_FAT16: return "dosfstools, mtools";
case FS_HFS : return "hfsutils" ; case FS_FAT32: return "dosfstools, mtools";
case FS_HFSPLUS : return "hfsprogs" ; case FS_HFS: return "hfsutils";
case FS_JFS : return "jfsutils" ; case FS_HFSPLUS: return "hfsprogs";
case FS_LINUX_SWAP : return "util-linux" ; case FS_JFS: return "jfsutils";
case FS_LVM2_PV : return "lvm2" ; case FS_LINUX_SWAP: return "util-linux";
case FS_LUKS : return "cryptsetup, dmsetup"; case FS_LUKS: return "cryptsetup, dmsetup";
case FS_MINIX : return "util-linux"; case FS_LVM2_PV: return "lvm2";
case FS_NILFS2 : return "nilfs-utils / nilfs-tools"; case FS_MINIX: return "util-linux";
case FS_NTFS : return "ntfs-3g / ntfsprogs" ; case FS_NILFS2: return "nilfs-utils / nilfs-tools";
case FS_REISER4 : return "reiser4progs" ; case FS_NTFS: return "ntfs-3g / ntfsprogs";
case FS_REISERFS : return "reiserfsprogs / reiserfs-utils" ; case FS_REISER4: return "reiser4progs";
case FS_UDF : return "udftools"; case FS_REISERFS: return "reiserfsprogs / reiserfs-utils";
case FS_XFS : return "xfsprogs, xfsdump" ; case FS_UDF: return "udftools";
case FS_XFS: return "xfsprogs, xfsdump";
default : return "" ; default: return "";
} }
} }
//Report whether or not the kernel supports a particular file system //Report whether or not the kernel supports a particular file system
bool Utils::kernel_supports_fs( const Glib::ustring & fs ) bool Utils::kernel_supports_fs( const Glib::ustring & fs )
{ {
bool fs_supported = false ; bool fs_supported = false ;
//Read /proc/filesystems and check for the file system name. //Read /proc/filesystems and check for the file system name.
// Will succeed for compiled in drivers and already loaded // Will succeed for compiled in drivers and already loaded
 End of changes. 2 change blocks. 
23 lines changed or deleted 23 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)