On Wednesday 19 January 2005 22:24, Peter T. Breuer wrote:
> maarten <[EMAIL PROTECTED]> wrote:
> > On Wednesday 19 January 2005 21:19, Peter T. Breuer wrote:
> > > Poonam Dalya <[EMAIL PROTECTED]> wrote:

> > Sigh.
>
> You don't understand - he mounted the raw partitions that make up the
> raid array WHILE THE RAID WAS RUNNING somewhere else.

In that case, okay.

> If the mount had failed he would have said. Therefore it did not fail.
> If he had unmounted the raid array first, then the umount would have
> flushed buffers to that device (the kernel sends flush_buffers or
> whatever it is called nowadays) and the file would have been visible
> when he did the later mount.

I tried to reproduce it, and it is even more serious than that, upon first 
glance.  So you're right.  Witness below:

dozer:~ # df
/dev/md0               1953344   1758636    194708  91% /

dozer:~ # cat /proc/mdstat
md0 : active raid1 hde1[1]
      1953408 blocks [3/1] [_U_]

dozer:~ # mount -o ro /dev/hde1 /mnt/
dozer:~ # df
/dev/md0               1953344   1758640    194704  91% /
/dev/hde1              1953344   1758636    194708  91% /mnt

dozer:~ # touch /foobar

dozer:~ # ls -l /mnt/foobar
/bin/ls: /mnt/foobar: No such file or directory

dozer:~ # sync

dozer:~ # ls -l /mnt/foobar
/bin/ls: /mnt/foobar: No such file or directory

dozer:~ # umount /mnt/
dozer:~ # mount -o ro /dev/hde1 /mnt/
dozer:~ # ls -l /mnt/foobar
/bin/ls: /mnt/foobar: No such file or directory

dozer:~ # ls -l /foobar
-rw-r--r--    1 root     root            0 Jan 19 22:33 /foobar

Strange, eh ? (obviously I can't umount /dev/md0 to see...)

Maarten

-- 

-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to