public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Mount -o sync regression in 2.6.31
@ 2009-11-11 20:33 Stephen Hemminger
  2009-11-11 21:34 ` Frans Pop
  0 siblings, 1 reply; 10+ messages in thread
From: Stephen Hemminger @ 2009-11-11 20:33 UTC (permalink / raw)
  To: Jens Axboe; +Cc: linux-kernel

One of the configurations supported in our specialized distribution is using
floppy to store configuration information (and live cd for everything else).
The floppy is mounted with '-o sync' so that if floppy is removed the files
are still updated. The floppy is formatted with ext2 filesystem.

This broke somewhere between 2.6.30 and 2.6.31-rc1, and was caught by our
release regression system (with VMware pseudo-floppys) but it is easily
reproducible with real hardware.

The following sequence demonstrates this:

# mount /dev/fd0 /mnt -o sync,noatime,noexec,nosuid 
# cp /etc/motd /mnt/motd.$$

(Manually eject floppy)

# umount /mnt

(I/O errors occur)

With -o sync, all I/O should have been completed when the copy was done.

This may also effect people using -o sync on USB thumb drives as well.

I tried the obvious bisection, but git bisect seems to wonder off into the
weeds now. There is no reason that bisecting between v2.6.30 and v2.6.31-rc1
should go off into v2.6.30-rc2


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2009-11-17 17:16 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-11 20:33 Mount -o sync regression in 2.6.31 Stephen Hemminger
2009-11-11 21:34 ` Frans Pop
2009-11-11 22:20   ` Stephen Hemminger
2009-11-13 22:47   ` Stephen Hemminger
2009-11-13 23:07     ` Andrew Morton
2009-11-13 23:28       ` Stephen Hemminger
2009-11-17  0:04       ` [PATCH] ext2: clear uptodate flag on super block I/O error Stephen Hemminger
2009-11-17  2:08         ` Nick Piggin
2009-11-17 17:16           ` Stephen Hemminger
2009-11-14 13:18     ` Mount -o sync regression in 2.6.31 Frederic Weisbecker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox