Project

General

Profile

Feature #6154 » 0001-Add-fs-type-option-to-the-disk-and-osd-commands.patch

Add --fs-type option - Benoît Knecht, 09/17/2013 02:08 AM

View differences:

ceph_deploy/osd.py
journal,
activate_prepared_disk,
zap,
fs_type,
dmcrypt,
dmcrypt_dir):
"""
......
]
if zap:
args.append('--zap-disk')
if fs_type:
if fs_type not in ('btrfs', 'ext4', 'xfs'):
raise argparse.ArgumentTypeError(
"FS_TYPE must be one of 'btrfs', 'ext4' of 'xfs'")
args.extend(['--fs-type', fs_type])
if dmcrypt:
args.append('--dmcrypt')
if dmcrypt_dir is not None:
......
journal=journal,
activate_prepared_disk=activate_prepared_disk,
zap=args.zap_disk,
fs_type=args.fs_type,
dmcrypt=args.dmcrypt,
dmcrypt_dir=args.dmcrypt_key_dir,
)
......
help='destroy existing partition table and content for DISK',
)
parser.add_argument(
'--fs-type',
metavar='FS_TYPE',
default='xfs',
help='filesystem to use to format DISK (xfs, btrfs or ext4)',
)
parser.add_argument(
'--dmcrypt',
action='store_true', default=None,
help='use dm-crypt on DISK',
......
help='destroy existing partition table and content for DISK',
)
parser.add_argument(
'--fs-type',
metavar='FS_TYPE',
default='xfs',
help='filesystem to use to format DISK (xfs, btrfs or ext4)'
)
parser.add_argument(
'--dmcrypt',
action='store_true', default=None,
help='use dm-crypt on DISK',
    (1-1/1)