Make XFS inode size configurable
Make XFS inode size configurable, so that it could be set to the desired value, if different than default 1024. Change-Id: If621587a02746876ee6c35d7af2e878dbc2ac8ef Closes-Bug: 1826552
This commit is contained in:
parent
04a0fc47b0
commit
dfc0e8bfe2
|
@ -206,3 +206,7 @@ options:
|
|||
description: |
|
||||
Encrypt block devices used by swift using dm-crypt, making use of
|
||||
vault for encryption key management; requires a relation to vault.
|
||||
xfs-inode-size:
|
||||
default: 512
|
||||
type: int
|
||||
description: XFS inode size to use for block devices.
|
||||
|
|
|
@ -522,7 +522,7 @@ def setup_storage(encrypt=False):
|
|||
|
||||
try:
|
||||
# If not cleaned and in use, mkfs should fail.
|
||||
mkfs_xfs(dev, force=reformat)
|
||||
mkfs_xfs(dev, force=reformat, inode_size=config('xfs-inode-size'))
|
||||
except subprocess.CalledProcessError as exc:
|
||||
# This is expected is a formatted device is provided and we are
|
||||
# forcing the format.
|
||||
|
|
Loading…
Reference in New Issue