Re: [MC] [CHECKER] Do ext2, jfs and reiserfs respect mount -o sync/dirsync option?

2005-03-19 Thread Florian Weimer
* Bernd Eckenfels: > In article <[EMAIL PROTECTED]> you wrote: >> 3. I open a file w/o O_SYNC, issue a bunch of writes, then call >> ioctl(FIOASYNC) to set the fd sync, then issure a second set of writes. >> Only the second set of writes are synchronous? > > I also am curious if one can open a fil

Re: [MC] [CHECKER] Do ext2, jfs and reiserfs respect mount -o sync/dirsync option?

2005-03-07 Thread Bernd Eckenfels
In article <[EMAIL PROTECTED]> you wrote: > 3. I open a file w/o O_SYNC, issue a bunch of writes, then call > ioctl(FIOASYNC) to set the fd sync, then issure a second set of writes. > Only the second set of writes are synchronous? I also am curious if one can open a file, write to it, close it, op

Re: [CHECKER] Do ext2, jfs and reiserfs respect mount -o sync/dirsync option?

2005-03-07 Thread Junfeng Yang
FiSC can still get those warnings with hdparm -W 0, or with a simple ramdisk that serves the disk requests whenever they are submitted. Thanks, -Junfeng On Mon, 7 Mar 2005, Alan Cox wrote: > The IDE layer default is still unfortunately broken and leaves write > caching enabled. Turn it off with

Re: [CHECKER] Do ext2, jfs and reiserfs respect mount -o sync/dirsync option?

2005-03-07 Thread Alan Cox
The IDE layer default is still unfortunately broken and leaves write caching enabled. Turn it off with hdparm. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [MC] [CHECKER] Do ext2, jfs and reiserfs respect mount -o sync/dirsync option?

2005-03-04 Thread Andrew Morton
Junfeng Yang <[EMAIL PROTECTED]> wrote: > > > >From a quick parse, ext2 seems to be full of MS_SYNCHRONOUS holes, and > > there might be some O_SYNC ones there as well. > > I should be able to easily add O_SYNC check to FiSC. Several questions: > 1. Does O_SYNC apply to directory as well? Only i

Re: [MC] [CHECKER] Do ext2, jfs and reiserfs respect mount -o sync/dirsync option?

2005-03-04 Thread Junfeng Yang
> >From a quick parse, ext2 seems to be full of MS_SYNCHRONOUS holes, and > there might be some O_SYNC ones there as well. I should be able to easily add O_SYNC check to FiSC. Several questions: 1. Does O_SYNC apply to directory as well? 2. For the same file, if I open twice, once with O_SYNC and

Re: [MC] [CHECKER] Do ext2, jfs and reiserfs respect mount -o sync/dirsync option?

2005-03-04 Thread Andrew Morton
Lars Marowsky-Bree <[EMAIL PROTECTED]> wrote: > > On 2005-03-04T01:44:06, Junfeng Yang <[EMAIL PROTECTED]> wrote: > > > > That would be a bug. Please send the e2fsck output. > > > > Here is the trace > > > > 1. file system is made with sbin/mkfs.ext2 -F -b 1024 /dev/hda9 60 > > and mounted wit

Re: [MC] [CHECKER] Do ext2, jfs and reiserfs respect mount -o sync/dirsync option?

2005-03-04 Thread Lars Marowsky-Bree
On 2005-03-04T01:44:06, Junfeng Yang <[EMAIL PROTECTED]> wrote: > > That would be a bug. Please send the e2fsck output. > > Here is the trace > > 1. file system is made with sbin/mkfs.ext2 -F -b 1024 /dev/hda9 60 > and mounted with -o sync,dirsync > > 1. operations FiSC did: > > creat(/mnt/

Re: [MC] [CHECKER] Do ext2, jfs and reiserfs respect mount -o sync/dirsync option?

2005-03-04 Thread Junfeng Yang
> That would be a bug. Please send the e2fsck output. Here is the trace 1. file system is made with sbin/mkfs.ext2 -F -b 1024 /dev/hda9 60 and mounted with -o sync,dirsync 1. operations FiSC did: creat(/mnt/sbd0/0001) write(/mnt/sbd0/0001) rename(/mnt/sbd0/0001, /mnt/sbd0/0002) mkdir(/mnt/sb

Re: [MC] [CHECKER] Do ext2, jfs and reiserfs respect mount -o sync/dirsync option?

2005-03-04 Thread Andrew Morton
Junfeng Yang <[EMAIL PROTECTED]> wrote: > > On Thu, 3 Mar 2005, Junfeng Yang wrote: > > > > > Hi, > > > > FiSC (our file system checker) emits several warnings on ext2, jfs and > > reiserfs, complaining that diretories or files are lost while FiSC > > believes they should already be persistent on

Re: [MC] [CHECKER] Do ext2, jfs and reiserfs respect mount -o sync/dirsync option?

2005-03-04 Thread Junfeng Yang
On Thu, 3 Mar 2005, Junfeng Yang wrote: > > Hi, > > FiSC (our file system checker) emits several warnings on ext2, jfs and > reiserfs, complaining that diretories or files are lost while FiSC > believes they should already be persistent on disk. (ext3 behaves > correctly.) I forget to mention, we

Re: [CHECKER] Do ext2, jfs and reiserfs respect mount -o sync/dirsync option?

2005-03-04 Thread Junfeng Yang
> It may happen that FISC reads the disk before the write command even finished. > With all the HD head movement optimization in the kernel (block layer, > boiling down to TCQ/NCQ), this sounds possible. FiSC "crashes" the kernel immediately after a file system operation (creat, mkdir, write, etc)

Re: [CHECKER] Do ext2, jfs and reiserfs respect mount -o sync/dirsync option?

2005-03-03 Thread Jan Engelhardt
>All warnings boil down to a single cause: when these file systems are >mounted -o sync or dirsync, dirty blocks are still written out >asynchronously. It appears to me that these mount options don't have any >effect on these file systems. Is this the intended behavior? At least my HDD LED flas

Re: [CHECKER] Do ext2, jfs and reiserfs respect mount -o sync/dirsync option?

2005-03-03 Thread Matt Mackall
On Thu, Mar 03, 2005 at 10:33:40PM -0800, Junfeng Yang wrote: > > Hi, > > FiSC (our file system checker) emits several warnings on ext2, jfs and > reiserfs, complaining that diretories or files are lost while FiSC > believes they should already be persistent on disk. (ext3 behaves > correctly.) >

[CHECKER] Do ext2, jfs and reiserfs respect mount -o sync/dirsync option?

2005-03-03 Thread Junfeng Yang
Hi, FiSC (our file system checker) emits several warnings on ext2, jfs and reiserfs, complaining that diretories or files are lost while FiSC believes they should already be persistent on disk. (ext3 behaves correctly.) All warnings boil down to a single cause: when these file systems are mount