Thread (30 messages) 30 messages, 12 authors, 2008-03-07

Re: [RFC] ext3 freeze feature

From: Christoph Hellwig <hch@infradead.org>
Date: 2008-02-16 13:25:02
Also in: linux-fsdevel, lkml

On Fri, Feb 15, 2008 at 08:51:15PM +0900, Takashi Sato wrote:
So XFS_IOC_FREEZE and XFS_IOC_THAW cannot be lifted to generic code simply.
I think we should create new generic numbers for freeze and thaw
Actually we've lifted specific ioctls to the generic layer before all
the time in drivers.  That's the only way to make functionality that was
specific to a single driver (or in this case filesystem) generic.  If
the numbering issues confuses you make sure to add a big comment
describing it
And xfs_freeze calls XFS_IOC_FREEZE with a magic number 1, but what is 1?
As Eric said it's ignored.
Instead, I'd like the sec to timeout on freeze API in order to thaw
the filesystem automatically.  It can prevent a filesystem from staying
frozen forever.
(Because a freezer may cause a deadlock by accessing the frozen filesystem.)
Timeout based locking is generally a horrible idea, there's a reason
we don't have any primitives for that in the kernel :)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help