xfs
[Top] [All Lists]

Re: XFS - Changing sunit and swidth

To: Joshua Schmidlkofer <kernel@xxxxxxxxxxxxxx>
Subject: Re: XFS - Changing sunit and swidth
From: Nathan Scott <nathans@xxxxxxx>
Date: Wed, 10 Nov 2004 09:35:42 +1100
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: <41912498.4000302@pacrimopen.com>
References: <41912498.4000302@pacrimopen.com>
Sender: linux-xfs-bounce@xxxxxxxxxxx
User-agent: Mutt/1.5.3i
On Tue, Nov 09, 2004 at 12:12:08PM -0800, Joshua Schmidlkofer wrote:
> The mount man page lists the ability to change the sunit and swidth via 
> mount options.
> 
> Is that the case?  Does it work?   I will Use The Source(tm) if no one 

Yes, this is the case, and it should work.  Look at the top of
xfs_mountfs() in xfs_mount.c, thats where these mouint options
are poked into the superblock.

> /dev/sda1               /snapshots      xfs 
> noatime,nodiratime,logbufs=8,sunit=16,swidth=48 0 0

> meta-data=/snapshots             isize=256    agcount=32, agsize=4577708 
> blks
>          =                       sectsz=512
> data     =                       bsize=4096   blocks=146486656, imaxpct=25
>          =                       sunit=0      swidth=0 blks, unwritten=1

thats odd, I'd expect the new values to show up here, from
a quick look at the code.  I'd suggest putting some printks
in that code I pointed out above, and see which code path it
is using there & why your superblock isn't being updated.

cheers.

-- 
Nathan


<Prev in Thread] Current Thread [Next in Thread>