9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* device-specific qid.version behaviour (was Re: [9fans] QTCTL?)
@ 2007-11-05 11:18 roger peppe
  2007-11-05 13:18 ` erik quanstrom
  0 siblings, 1 reply; 17+ messages in thread
From: roger peppe @ 2007-11-05 11:18 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On 11/1/07, erik quanstrom <quanstro@quanstro.net> wrote:
> i think it makes sense to use the medium changes (not connections, if
> possible) to determine the version.  the marvell and aoe driver
> consider a device changed if the serial# or number of sectors
> change.that is something most io clients are interested in.

this kind of thing is fine until you want to run software that
uses the original notion of "version". for instance, i suppose it's
not inconceivable that you could run something like cfs over
such a device.

turning things around, by providing device-specific versioning behavior,
you can end up with clients that won't work well when run over normal
files. if a client expects the version number to change only when the
media changes, then it's quite likely to be fairly surprised if
the version number changes every time it writes some data.

that's why i think that preserving standard semantics is a Good Thing.
it preserves filesystem transparency, one of the nicest
things about plan 9.

> it does not seem too much of a stretch.  the stat.size field isn't the
> "file size" of a stream (whatever that means).  so i think this is
> well within the tradition.

in what filesystems does stat.size hold anything other than zero
(don't know) or the
number of bytes that are currently readable from the file?


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

end of thread, other threads:[~2007-11-06  0:53 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-05 11:18 device-specific qid.version behaviour (was Re: [9fans] QTCTL?) roger peppe
2007-11-05 13:18 ` erik quanstrom
2007-11-05 14:35   ` roger peppe
2007-11-05 15:01     ` erik quanstrom
2007-11-05 16:10       ` roger peppe
2007-11-05 16:40         ` erik quanstrom
2007-11-05 17:06           ` roger peppe
2007-11-05 17:54             ` erik quanstrom
2007-11-05 22:17               ` roger peppe
2007-11-05 23:21                 ` erik quanstrom
2007-11-06  0:53                   ` Charles Forsyth
2007-11-05 17:26           ` Skip Tavakkolian
2007-11-05 18:25             ` Eric Van Hensbergen
2007-11-05 19:52               ` Skip Tavakkolian
2007-11-05 22:12                 ` Skip Tavakkolian
2007-11-05 16:42         ` erik quanstrom
2007-11-05 15:27     ` erik quanstrom

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).