Re: ext3fs: umount+sync not enough to guarantee metadata-on-disk

2007-06-14 Thread Phillip Susi
Pavel Machek wrote: Hi! Did this succeed? If the application is still truncating that file, the umount should have failed. Actually, what I expect to happen is for the remount,ro to block until the file deletion completes. But it doesn't. Once a f/s is read-only, there should be NO writ

Re: ext3fs: umount+sync not enough to guarantee metadata-on-disk

2007-06-12 Thread Stephen C. Tweedie
Hi, On Sun, 2007-06-10 at 18:27 +, Pavel Machek wrote: > > Once a f/s is read-only, there should be NO writing to > > it. Right? > > Linux happily writes to filesystems mounted read-only. It will replay > journal on them. Only at mount time, not on unmount; and it does check whether the u

Re: ext3fs: umount+sync not enough to guarantee metadata-on-disk

2007-06-12 Thread Pavel Machek
Hi! > >Did this succeed? If the application is still > >truncating that file, the > >umount should have failed. > > Actually, what I expect to happen is for the remount,ro > to block until the file deletion completes. But it > doesn't. > > Once a f/s is read-only, there should be NO writing

Re: ext3fs: umount+sync not enough to guarantee metadata-on-disk

2007-06-12 Thread Pavel Machek
Hi! > >>Did this succeed? If the application is still > >>truncating that file, the > >>umount should have failed. > > > >Shouldn't sync should wait for truncate to finish? > > The part that gets me here, and that others might be > missing, > is that we are not waiting for ftruncate at this po

Re: ext3fs: umount+sync not enough to guarantee metadata-on-disk

2007-06-12 Thread Jan Kara
On Mon 11-06-07 18:47:05, Mark Lord wrote: > Jan Kara wrote: > >>Andrew Morton wrote: > >>>On Thu, 07 Jun 2007 12:11:58 -0400 > >>>Chuck Ebbert <[EMAIL PROTECTED]> wrote: > >>> > On 06/07/2007 11:41 AM, Andrew Morton wrote: > >> mount /var/lib/mythtv -oremount,ro > >> sync > >> u

Re: ext3fs: umount+sync not enough to guarantee metadata-on-disk

2007-06-11 Thread Mark Lord
Jan Kara wrote: Chuck Ebbert wrote: On 06/07/2007 11:41 AM, Andrew Morton wrote: mount /var/lib/mythtv -oremount,ro sync umount /var/lib/mythtv Did this succeed? If the application is still truncating that file, the umount should have failed. Shouldn't sync should wait for truncate to

Re: ext3fs: umount+sync not enough to guarantee metadata-on-disk

2007-06-11 Thread Mark Lord
Jan Kara wrote: Andrew Morton wrote: On Thu, 07 Jun 2007 12:11:58 -0400 Chuck Ebbert <[EMAIL PROTECTED]> wrote: On 06/07/2007 11:41 AM, Andrew Morton wrote: mount /var/lib/mythtv -oremount,ro sync umount /var/lib/mythtv Did this succeed? If the application is still truncating that fil

Re: ext3fs: umount+sync not enough to guarantee metadata-on-disk

2007-06-11 Thread Jan Kara
> Andrew Morton wrote: > >On Thu, 07 Jun 2007 12:11:58 -0400 > >Chuck Ebbert <[EMAIL PROTECTED]> wrote: > > > >>On 06/07/2007 11:41 AM, Andrew Morton wrote: > mount /var/lib/mythtv -oremount,ro > sync > umount /var/lib/mythtv > >>>Did this succeed? If the application is still

Re: ext3fs: umount+sync not enough to guarantee metadata-on-disk

2007-06-11 Thread Jan Kara
> Chuck Ebbert wrote: > >On 06/07/2007 11:41 AM, Andrew Morton wrote: > >>> mount /var/lib/mythtv -oremount,ro > >>> sync > >>> umount /var/lib/mythtv > >>Did this succeed? If the application is still truncating that file, the > >>umount should have failed. > > > >Shouldn't sync should wait

Re: ext3fs: umount+sync not enough to guarantee metadata-on-disk

2007-06-08 Thread Mark Lord
Andrew Morton wrote: On Thu, 07 Jun 2007 12:11:58 -0400 Chuck Ebbert <[EMAIL PROTECTED]> wrote: On 06/07/2007 11:41 AM, Andrew Morton wrote: mount /var/lib/mythtv -oremount,ro sync umount /var/lib/mythtv Did this succeed? If the application is still truncating that file, the umount

Re: ext3fs: umount+sync not enough to guarantee metadata-on-disk

2007-06-08 Thread Mark Lord
Andrew Morton wrote: On Thu, 07 Jun 2007 17:38:54 -0400 Mark Lord <[EMAIL PROTECTED]> wrote: Andrew Morton wrote: On Thu, 07 Jun 2007 12:11:58 -0400 Chuck Ebbert <[EMAIL PROTECTED]> wrote: On 06/07/2007 11:41 AM, Andrew Morton wrote: mount /var/lib/mythtv -oremount,ro sync umount /

Re: ext3fs: umount+sync not enough to guarantee metadata-on-disk

2007-06-07 Thread Andrew Morton
On Thu, 07 Jun 2007 17:38:54 -0400 Mark Lord <[EMAIL PROTECTED]> wrote: > Andrew Morton wrote: > > On Thu, 07 Jun 2007 12:11:58 -0400 > > Chuck Ebbert <[EMAIL PROTECTED]> wrote: > > > >> On 06/07/2007 11:41 AM, Andrew Morton wrote: > mount /var/lib/mythtv -oremount,ro > sync > >>>

Re: ext3fs: umount+sync not enough to guarantee metadata-on-disk

2007-06-07 Thread Mark Lord
Chuck Ebbert wrote: On 06/07/2007 11:41 AM, Andrew Morton wrote: mount /var/lib/mythtv -oremount,ro sync umount /var/lib/mythtv Did this succeed? If the application is still truncating that file, the umount should have failed. Shouldn't sync should wait for truncate to finish? The

Re: ext3fs: umount+sync not enough to guarantee metadata-on-disk

2007-06-07 Thread Mark Lord
Andrew Morton wrote: On Thu, 07 Jun 2007 12:11:58 -0400 Chuck Ebbert <[EMAIL PROTECTED]> wrote: On 06/07/2007 11:41 AM, Andrew Morton wrote: mount /var/lib/mythtv -oremount,ro sync umount /var/lib/mythtv Did this succeed? If the application is still truncating that file, the umount

Re: ext3fs: umount+sync not enough to guarantee metadata-on-disk

2007-06-07 Thread Andrew Morton
On Thu, 07 Jun 2007 12:11:58 -0400 Chuck Ebbert <[EMAIL PROTECTED]> wrote: > On 06/07/2007 11:41 AM, Andrew Morton wrote: > >>mount /var/lib/mythtv -oremount,ro > >>sync > >>umount /var/lib/mythtv > > > > Did this succeed? If the application is still truncating that file, the > > umo

Re: ext3fs: umount+sync not enough to guarantee metadata-on-disk

2007-06-07 Thread Stephen C. Tweedie
Hi, On Thu, 2007-06-07 at 12:01 -0400, Mark Lord wrote: > >>mount /var/lib/mythtv -oremount,ro > >>sync > >>umount /var/lib/mythtv > > > > Did this succeed? If the application is still truncating that file, the > > umount should have failed. > > Actually, what I expect to happen is

Re: ext3fs: umount+sync not enough to guarantee metadata-on-disk

2007-06-07 Thread Chuck Ebbert
On 06/07/2007 11:41 AM, Andrew Morton wrote: >>mount /var/lib/mythtv -oremount,ro >>sync >>umount /var/lib/mythtv > > Did this succeed? If the application is still truncating that file, the > umount should have failed. Shouldn't sync should wait for truncate to finish? - To unsubscri

Re: ext3fs: umount+sync not enough to guarantee metadata-on-disk

2007-06-07 Thread Mark Lord
Andrew Morton wrote: On Thu, 07 Jun 2007 09:44:24 -0400 Mark Lord <[EMAIL PROTECTED]> wrote: .. 2. When I trigger the shutdown whilst this is happening, Myth gets killed off, and so the unlinked file is automatically closed. and the kernel (filesystem) code begins finishing the delete operation

Re: ext3fs: umount+sync not enough to guarantee metadata-on-disk

2007-06-07 Thread Andrew Morton
On Thu, 07 Jun 2007 09:44:24 -0400 Mark Lord <[EMAIL PROTECTED]> wrote: > Andrew / Stephen / Ted, > > I have a MythTV PVR box here, which has had intermittent shutdown issues > over the past while. > > The main storage for recordings is a 2-drive RAID0 array, > formatted with ext3fs. The system

ext3fs: umount+sync not enough to guarantee metadata-on-disk

2007-06-07 Thread Mark Lord
Andrew / Stephen / Ted, I have a MythTV PVR box here, which has had intermittent shutdown issues over the past while. The main storage for recordings is a 2-drive RAID0 array, formatted with ext3fs. The system runs a 2.6.17 Ubuntu kernel that I've tailored/rebuild for this specific machine. My