Change in vdsm[master]: gluster: fix xfs filesystem is created with wrong inode size

tjeyasin at redhat.com tjeyasin at redhat.com
Tue Jul 21 10:00:11 UTC 2015


Timothy Asir has uploaded a new change for review.

Change subject: gluster: fix xfs filesystem is created with wrong inode size
......................................................................

gluster: fix xfs filesystem is created with wrong inode size

Currently brick create function creates an xfs filesystem with
default value (ex 256) for the disks other then RAID6 or RAID10.
This patch fixes this issue by setting the inode size to 512 and
the directory block size to 8192.

Change-Id: If3f350d2f79172705a93a9d69fe1b7b78867861e
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1244865
Signed-off-by: Timothy Asir Jeyasingh <tjeyasin at redhat.com>
---
M vdsm/gluster/storagedev.py
1 file changed, 3 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/47/43847/1

diff --git a/vdsm/gluster/storagedev.py b/vdsm/gluster/storagedev.py
index af250417..e79a4fc 100644
--- a/vdsm/gluster/storagedev.py
+++ b/vdsm/gluster/storagedev.py
@@ -313,6 +313,9 @@
             "-f", "-K", "-i", "size=512",
             "-d", "sw=%s,su=%sk" % (count, raidParams.get('stripeSize')),
             "-n", "size=8192"]
+    else:
+        format._defaultFormatOptions = ["-f", "-i", "size=512",
+                                        "-n", "size=8192"]
     blivetEnv.formatDevice(thinlv, format)
     blivetEnv.doIt()
 


-- 
To view, visit https://gerrit.ovirt.org/43847
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: If3f350d2f79172705a93a9d69fe1b7b78867861e
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Timothy Asir <tjeyasin at redhat.com>


More information about the vdsm-patches mailing list