Quote:
Originally Posted by smallpond
Why not just remount the filesystem and autodetect the new values as it suggests?
|
I must be really thick, may I ask where it says that? I see it says it'll autodetect, but, not on remount, only on creation.
EDIT:- Threw it onto VBox, made a small mdadm array using raid 5 & 3 8GB drives, aligned at 512KB. I made the xfs array, then, grew the mdadm array up to five drives, grew the xfs array, and, remounted it:-
http://i.imgur.com/0iCtHOV.png
/proc/mount contains:-
Code:
/dev/md127p1 on /mnt/raid type xfs (rw,relatime,attr2,inode64,sunit=1024,swidth=2048,noquota)
Which, after reading more about it
here is in 512 byte sectors, so:-
sunit =1024 * 512bytes (Half a MB, 512KB)
swidth=2048 * 512bytes (One MB)
So, now, the sunit is correct, but, the swidth isn't (...I think?), however, if it's only a mount option I have to change I can deal with that. May I ask what
exactly it changes? I was under the impression it was the whole foundations of the filesystem, not really something you can just 'slide around' in a couple of seconds remounting it.
EDIT:-
http://lxr.free-electrons.com/source/fs/xfs/xfs_super.c
That would lead me to believe that it's impossible to change, am I wrong? It clearly seems to only pick up on inode64/32, and, the write barrier option, along with a comment which says, well, you can read it for yourself.
So, does that mean it's impossible to change the value once the filesystem is created?