diff options
author | Peter Jones <pjones@redhat.com> | 2005-03-23 23:06:04 +0000 |
---|---|---|
committer | Peter Jones <pjones@redhat.com> | 2005-03-23 23:06:04 +0000 |
commit | 49ebfcd05d1d86c86e3bf225f99ff6e8aae7ed48 (patch) | |
tree | 10005916d144ef77a20c555ff983b2648dd5c05e | |
parent | 74ca0d87c8cfe4adff3ebdc6e7d55096c9c34871 (diff) | |
download | anaconda-49ebfcd05d1d86c86e3bf225f99ff6e8aae7ed48.tar.gz anaconda-49ebfcd05d1d86c86e3bf225f99ff6e8aae7ed48.tar.xz anaconda-49ebfcd05d1d86c86e3bf225f99ff6e8aae7ed48.zip |
fix mkfs on xfs
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | fsset.py | 6 |
2 files changed, 10 insertions, 1 deletions
@@ -1,3 +1,8 @@ +2005-03-23 Peter Jones <pjones@redhat.com> + + * fsset.py (xfsFileSystem.formatDevice): Fix mkfs on xfs, + from Lars Hamann (#151378) + 2005-03-23 Chris Lumens <clumens@redhat.com> * Bump version. @@ -419,9 +419,13 @@ class xfsFileSystem(FileSystemType): def formatDevice(self, entry, progress, chroot='/'): devicePath = entry.device.setupDevice(chroot) + xfsBytesPerInode = 2048 + if entry.bytesPerInode < 2048: + xfsBytesPerInode = entry.bytesPerInode + rc = iutil.execWithRedirect("/usr/sbin/mkfs.xfs", ["mkfs.xfs", "-f", "-l", "internal", - "-i size=" + str(entry.bytesPerInode), + "-i", "size=" + str(xfsBytesPerInode), devicePath ], stdout = "/dev/tty5", stderr = "/dev/tty5") |