public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* 2.4 bug: fifo-write causes diskwrites to read-only fs !
@ 2003-05-28 17:58 Rob van Nieuwkerk
  2003-05-28 18:52 ` Rob van Nieuwkerk
  2003-05-28 19:22 ` Nuno Silva
  0 siblings, 2 replies; 12+ messages in thread
From: Rob van Nieuwkerk @ 2003-05-28 17:58 UTC (permalink / raw)
  To: linux-kernel; +Cc: robn

Hi all,

It turns out that Linux is updating inode timestamps of fifos (named
pipes) that are written to while residing on a read-only filesystem.
It is not only updating in-ram info, but it will issue *physical*
writes to the read-only fs on the disk !

I use a CompactFlash in an embedded application with a read-only root-fs
on it.  There are several processes that communicate with each other
via fifos.  This bug in Linux causes frequent writes to my CF and will
shorten it's lifetime enormously ..

I've posted a report on the "mysterious writes" before:
( http://www.ussg.iu.edu/hypermail/linux/kernel/0303.2/1753.html )
(incorrectly) linking it to a possible bug in O_SYNC.  Nothing came out
of it.

But now I've completely tracked down the bug (logging all diskaccesses
and seeing it undoubtly write in disksectors containing time-stamp
info of fifo's).  Looking back it would have been easier to prove that
something is wrong: the modified time-stamps survive power-cycles.
This is not supposed to happen on a read-only fs.

I've tried reading the kernel source to find where the bug lives,
But I'm not too familiar with it.  Anyone out there who can
pin it down ?

	greetings,
	Rob van Nieuwkerk


Sysinfo:
--------
- various 2.4 kernels including RH-2.4.20-13.9,
  but also straight 2.4(ac) ones.
- CompactFlash (= IDE disk)
- Geode GX1 CPU (i586 compatible)

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

end of thread, other threads:[~2003-05-30 16:22 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-28 17:58 2.4 bug: fifo-write causes diskwrites to read-only fs ! Rob van Nieuwkerk
2003-05-28 18:52 ` Rob van Nieuwkerk
2003-05-28 19:17   ` Richard B. Johnson
2003-05-28 19:34     ` Rob van Nieuwkerk
2003-05-28 20:22       ` Richard B. Johnson
2003-05-28 20:52         ` Rob van Nieuwkerk
2003-05-30 13:21           ` Stephen C. Tweedie
2003-05-30 14:58             ` Christoph Hellwig
2003-05-30 15:18               ` Stephen C. Tweedie
2003-05-30 16:36                 ` Andrew Morton
2003-05-28 19:22 ` Nuno Silva
2003-05-28 19:37   ` Rob van Nieuwkerk

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