From: erik quanstrom <quanstro@quanstro.net>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] QTCTL?
Date: Thu, 1 Nov 2007 08:11:53 -0400 [thread overview]
Message-ID: <ed8e253a570c588a9a4cdf607c04bd40@quanstro.net> (raw)
In-Reply-To: <df49a7370711010229s858ac00w63d0f09d4ea9acad@mail.gmail.com>
>> to be a bit picky, the qid.version doesn't indicate the status of the device,
>> it indicates how many times the media have changed.
>>
>> it doesn't make sense for a process to blithly continue writing to the
>> new medium without getting an error.
>
> i agree with that, and for read-only devices, using the version
> on the data file to indicate media change seems fine. but for
> writable devices, surely the version number should increment
> once every time the device has been written? for writable devices,
> if there was a status file giving some information about the media,
> perhaps the version number on that would be a better place to
> record media changes.
i see the symmetry of what you're saying. what would be the utility
of maintaining the version this way? the version, as you describe it,
wouldn't survive reboot and, for network-attached storage, wouldn't be
coherent across machines. i'm not sure that devices are either
read-only or read-write. that might depend on the underlying
(hot-pluggable) medium. and the device driver might not care.
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. how many
times do you want to want to write a random subset of blocks to a
different device?
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.
- erik
next prev parent reply other threads:[~2007-11-01 12:11 UTC|newest]
Thread overview: 77+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-31 18:40 Francisco J Ballesteros
2007-10-31 18:56 ` Eric Van Hensbergen
2007-10-31 19:13 ` Charles Forsyth
2007-10-31 19:33 ` Eric Van Hensbergen
2007-10-31 19:39 ` erik quanstrom
2007-10-31 20:43 ` geoff
2007-10-31 21:32 ` Charles Forsyth
2007-10-31 22:48 ` roger peppe
2007-10-31 23:35 ` erik quanstrom
2007-11-01 9:29 ` roger peppe
2007-11-01 11:03 ` Eric Van Hensbergen
2007-11-01 11:19 ` Charles Forsyth
2007-11-01 12:11 ` erik quanstrom [this message]
2007-10-31 19:42 ` erik quanstrom
2007-10-31 19:49 ` Eric Van Hensbergen
2007-10-31 20:03 ` erik quanstrom
2007-10-31 20:10 ` Latchesar Ionkov
2007-10-31 20:12 ` Eric Van Hensbergen
2007-10-31 20:17 ` Russ Cox
2007-10-31 20:29 ` Francisco J Ballesteros
2007-10-31 20:48 ` Charles Forsyth
2007-10-31 21:23 ` Francisco J Ballesteros
2007-10-31 21:40 ` Russ Cox
2007-10-31 22:11 ` Charles Forsyth
2007-10-31 22:26 ` Francisco J Ballesteros
2007-10-31 22:37 ` Charles Forsyth
2007-10-31 22:43 ` Francisco J Ballesteros
2007-10-31 23:32 ` Eric Van Hensbergen
2007-10-31 23:41 ` [V9fs-developer] " Charles Forsyth
[not found] ` <606b6f003ae9f0ed3e8c3c5f90ddc720@terzarima.net>
2007-11-01 1:13 ` Eric Van Hensbergen
2007-10-31 23:54 ` erik quanstrom
2007-11-01 0:03 ` Charles Forsyth
2007-11-01 1:25 ` Eric Van Hensbergen
2007-11-01 1:44 ` erik quanstrom
2007-11-01 2:15 ` Eric Van Hensbergen
2007-11-01 7:34 ` Skip Tavakkolian
2007-11-01 6:21 ` Bakul Shah
2007-11-01 14:28 ` Russ Cox
2007-11-01 14:38 ` erik quanstrom
2007-11-01 14:41 ` Charles Forsyth
2007-11-01 15:26 ` Sape Mullender
2007-11-01 15:51 ` Latchesar Ionkov
2007-11-01 16:04 ` ron minnich
2007-11-01 16:16 ` Latchesar Ionkov
2007-11-01 16:21 ` Sape Mullender
2007-11-01 16:58 ` Francisco J Ballesteros
2007-11-01 17:11 ` Charles Forsyth
2007-11-01 17:11 ` Francisco J Ballesteros
2007-11-01 17:13 ` Sape Mullender
2007-11-01 17:38 ` ron minnich
2007-11-01 17:56 ` Francisco J Ballesteros
2007-11-01 18:01 ` Francisco J Ballesteros
2007-11-01 18:52 ` Eric Van Hensbergen
2007-11-01 19:29 ` Francisco J Ballesteros
2007-11-01 23:24 ` ron minnich
2007-11-01 17:03 ` Russ Cox
2007-11-01 17:12 ` Sape Mullender
2007-11-01 17:35 ` erik quanstrom
2007-11-01 18:36 ` erik quanstrom
2007-11-01 17:13 ` Charles Forsyth
2007-11-01 17:16 ` Charles Forsyth
2007-11-01 17:20 ` Charles Forsyth
2007-11-01 17:52 ` Eric Van Hensbergen
2007-11-01 18:00 ` Latchesar Ionkov
2007-11-01 18:03 ` Francisco J Ballesteros
2007-11-01 18:08 ` Latchesar Ionkov
2007-11-01 18:16 ` erik quanstrom
2007-11-01 18:19 ` Francisco J Ballesteros
2007-11-01 18:35 ` Sape Mullender
2007-11-01 19:09 ` Charles Forsyth
2007-11-01 19:07 ` erik quanstrom
2007-11-01 17:14 ` Bakul Shah
2007-11-01 16:17 ` Sape Mullender
2007-11-01 16:27 ` Sape Mullender
2007-11-01 16:58 ` Sape Mullender
2007-11-01 16:59 ` Bakul Shah
2007-11-01 4:21 Brian L. Stuart
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ed8e253a570c588a9a4cdf607c04bd40@quanstro.net \
--to=quanstro@quanstro.net \
--cc=9fans@cse.psu.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).