[RFC] ext3 freeze feature ver 0.2

2008-02-26 Thread Takashi Sato
Hi, Takashi Sato wrote: >>> 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 fr

Re: [RFC] ext3 freeze feature

2008-02-15 Thread Takashi Sato
Hi, Christoph Hellwig wrote: On Fri, Feb 08, 2008 at 08:26:57AM -0500, Andreas Dilger wrote: You may as well make the common ioctl the same as the XFS version, both by number and parameters, so that applications which already understand the XFS ioctl will work on other filesystems. Yes. In f

Re: [RFC] ext3 freeze feature

2008-02-13 Thread Takashi Sato
Hi, P.S. Oh yeah, it should be noted that freezing at the filesystem layer does *not* guarantee that changes to the block device aren't happening via mmap()'ed files. The LVM needs to freeze writes the block device level if it wants to guarantee a completely stable snapshot image. So the prop

Re: [RFC] ext3 freeze feature

2008-02-08 Thread Takashi Sato
Hi, Ted wrote: And I do agree that we probably should just implement this in filesystem independent way, in which case all of the filesystems that support this already have super_operations functions write_super_lockfs() and unlockfs(). So if this is done using a new system call, there should b

Re: [RFC] ext3 freeze feature

2008-02-06 Thread Takashi Sato
Hi, What you *could* do is to start putting processes to sleep if they attempt to write to the frozen filesystem, and then detect the deadlock case where the process holding the file descriptor used to freeze the filesystem gets frozen because it attempted to write to the filesystem --- at which

Re: [RFC] ext3 freeze feature

2008-01-28 Thread Takashi Sato
Hi, What you *could* do is to start putting processes to sleep if they attempt to write to the frozen filesystem, and then detect the deadlock case where the process holding the file descriptor used to freeze the filesystem gets frozen because it attempted to write to the filesystem --- at which

Re: [RFC] ext3 freeze feature

2008-01-28 Thread Takashi Sato
Hi, Thank you for your comments. That's inherently unsafe - you can have multiple unfreezes running in parallel which seriously screws with the bdev semaphore count that is used to lock the device due to doing multiple up()s for every down. Your timeout thingy guarantee that at some point you

Re: [RFC] ext3 freeze feature

2008-01-25 Thread Takashi Sato
Hi, I am also wondering whether we should have system call(s) for these: On Jan 25, 2008 12:59 PM, Takashi Sato <[EMAIL PROTECTED]> wrote: + case EXT3_IOC_FREEZE: { + case EXT3_IOC_THAW: { And just convert XFS to use them too? I think it is reasonable to implement it

[RFC] ext3 freeze feature

2008-01-25 Thread Takashi Sato
d to the delayed work queue to unfreeze the filesystem automatically after the lapse of the specified time. Any comments are very welcome. Signed-off-by: Takashi Sato <[EMAIL PROTECTED]> --- diff -uprN -X linux-2.6.24-rc8/Documentation/dontdiff linux-2.6.24-rc8/fs/ext3/ioctl.c linux-2.6.24-

OOM problems still left in 2.6.13-rc3

2005-07-29 Thread Takashi Sato
0) { +unlock_buffer(bh); +log_wait_commit(journal, wait_tid); +goto retry; + } + may_free &= ret; unlock_buffer(bh); } curr_off = next_off; Any feedback and comments are welcome. Best regards, Takashi Sato - To unsubscribe from this list: send the line "unsubscrib