xfs
[Top] [All Lists]

Re: Swapfiles broken on XFS.

To: Nigel Cunningham <ncunningham@xxxxxxxxxxxxxxxxxxxxx>
Subject: Re: Swapfiles broken on XFS.
From: Christoph Hellwig <hch@xxxxxxxxxxxxx>
Date: Fri, 9 Jan 2004 16:16:53 +0000
Cc: XFS list <linux-xfs@xxxxxxxxxxx>, Karol Kozimor <sziwan@xxxxxxxxxxx>, swsusp-devel <swsusp-devel@xxxxxxxxxxxxxxxxxxxxx>
In-reply-to: <1073620506.3790.21.camel@laptop-linux>; from ncunningham@xxxxxxxxxxxxxxxxxxxxx on Fri, Jan 09, 2004 at 04:55:09PM +1300
References: <1073620506.3790.21.camel@laptop-linux>
Sender: linux-xfs-bounce@xxxxxxxxxxx
User-agent: Mutt/1.2.5.1i
On Fri, Jan 09, 2004 at 04:55:09PM +1300, Nigel Cunningham wrote:
> It appears to me that a swapfile on an XFS filesystem will not work, at
> least some of the time.

XFS sets s_blocksize to the filesystem blocksize and bdev->bd_block_size /
i_blkbits to the XFS sector size.  The first would be 4096 in your
case and the latter 512.  We cannot set a bigger device block size because
XFS log writes are in 512b units.

I don't think the swap code should do any assumptions about any relation
of the above two.


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