btrfs-comp переименован в btrfs-compress

develop 3.6.2.3
parent b5635a3a6a
commit 637ef24386

@ -1016,7 +1016,7 @@ class PartitionDistributive(Distributive):
'ntfs': FormatNtfs, 'ntfs': FormatNtfs,
'uefi': FormatUefi, 'uefi': FormatUefi,
'btrfs': FormatBtrfs, 'btrfs': FormatBtrfs,
'btrfs-comp': FormatBtrfsCompressed, 'btrfs-compress': FormatBtrfsCompressed,
'swap': FormatSwap 'swap': FormatSwap
} }
@ -1135,7 +1135,7 @@ class PartitionDistributive(Distributive):
realMountPoint = None realMountPoint = None
if fileSystem != "swap": if fileSystem != "swap":
realMountPoint = pathJoin(mdirectory, mountPoint) realMountPoint = pathJoin(mdirectory, mountPoint)
mapFS = {'btrfs-comp': 'btrfs'} mapFS = {'btrfs-compress': 'btrfs'}
self._mountPartition( self._mountPartition(
dev, realMountPoint, dev, realMountPoint,
"-t %s" % mapFS.get(fileSystem,fileSystem)) "-t %s" % mapFS.get(fileSystem,fileSystem))

@ -68,8 +68,8 @@ class FileSystemManager(object):
'msdos': '83', 'msdos': '83',
'ssd': ['ssd', 'discard', 'space_cache'], 'ssd': ['ssd', 'discard', 'space_cache'],
'type': ['hdd', 'usb-hdd'], 'type': ['hdd', 'usb-hdd'],
'compatible': ['btrfs-comp']}, 'compatible': ['btrfs-compress']},
'btrfs-comp': {'defaultopt': defaultOpt, 'btrfs-compress': {'defaultopt': defaultOpt,
'format': '/sbin/mkfs.btrfs', 'format': '/sbin/mkfs.btrfs',
'orig': 'btrfs', 'orig': 'btrfs',
'formatparam': '{labelparam} -f {device}', 'formatparam': '{labelparam} -f {device}',

@ -584,7 +584,7 @@ class VariableOsDiskFormat(ReadonlyVariable):
if fs == "btrfs": if fs == "btrfs":
try: try:
if Btrfs(dev).compression != "": if Btrfs(dev).compression != "":
return "btrfs-comp" return "btrfs-compress"
except BtrfsError: except BtrfsError:
pass pass
return fs return fs

Loading…
Cancel
Save