9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Annyoing modified by boyd
@ 2014-09-17 11:18 Ingo Krabbe
  2014-09-17 12:36 ` Steve Simon
  0 siblings, 1 reply; 7+ messages in thread
From: Ingo Krabbe @ 2014-09-17 11:18 UTC (permalink / raw)
  To: 9fans

Hey,

using legacy bell-labs plan9 (I don't know the others), I often, that converges to always, get "FILE modified by boyd since last read" when editing a file on a cifs share with acme.

The cifs main.c defines "boyd" as the "modifying user" (muid) in I2D and V2D, which are from fs.stat.

>From /sys/src/cmd/acme/exec.c:/putfile/+14

	if(d!=nil && runeeq(namer, nname, f->name, f->nname)){
		/* f->mtime+1 because when talking over NFS it's often off by a second */
		if(f->dev!=d->dev || f->qidpath!=d->qid.path || f->mtime+1<d->mtime){
			f->dev = d->dev;
			f->qidpath = d->qid.path;
			f->mtime = d->mtime;
			if(f->unread)
				warning(nil, "%s not written; file already exists\n", name);
			else
				warning(nil, "%s modified%s%s since last read\n", name, d->muid[0]?" by ":"", d->muid);
			goto Rescue1;
		}
	}

Hmm, possibly this is another time quirk, like that one from NFS. Does anyone know a good solution to that problem?

Regards
ikrabbe





^ permalink raw reply	[flat|nested] 7+ messages in thread
* Re: [9fans] Annyoing modified by boyd
@ 2014-09-18  3:41 Winston Kodogo
  2014-09-18  8:20 ` Ingo Krabbe
  0 siblings, 1 reply; 7+ messages in thread
From: Winston Kodogo @ 2014-09-18  3:41 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

[-- Attachment #1: Type: text/plain, Size: 1573 bytes --]

"FILE modified by boyd since last read" strikes me as more useful than most
error messages I see these days. My only question is what particular weapon
Boyd would have used to "modify" the file.

On 17 September 2014 23:18, Ingo Krabbe <ikrabbe.ask@gmail.com> wrote:

> Hey,
>
> using legacy bell-labs plan9 (I don't know the others), I often, that
> converges to always, get "FILE modified by boyd since last read" when
> editing a file on a cifs share with acme.
>
> The cifs main.c defines "boyd" as the "modifying user" (muid) in I2D and
> V2D, which are from fs.stat.
>
> From /sys/src/cmd/acme/exec.c:/putfile/+14
>
>         if(d!=nil && runeeq(namer, nname, f->name, f->nname)){
>                 /* f->mtime+1 because when talking over NFS it's often off
> by a second */
>                 if(f->dev!=d->dev || f->qidpath!=d->qid.path ||
> f->mtime+1<d->mtime){
>                         f->dev = d->dev;
>                         f->qidpath = d->qid.path;
>                         f->mtime = d->mtime;
>                         if(f->unread)
>                                 warning(nil, "%s not written; file already
> exists\n", name);
>                         else
>                                 warning(nil, "%s modified%s%s since last
> read\n", name, d->muid[0]?" by ":"", d->muid);
>                         goto Rescue1;
>                 }
>         }
>
> Hmm, possibly this is another time quirk, like that one from NFS. Does
> anyone know a good solution to that problem?
>
> Regards
> ikrabbe
>
>
>
>

[-- Attachment #2: Type: text/html, Size: 2226 bytes --]

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

end of thread, other threads:[~2014-09-18 21:46 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-17 11:18 [9fans] Annyoing modified by boyd Ingo Krabbe
2014-09-17 12:36 ` Steve Simon
2014-09-18  8:14   ` Ingo Krabbe
2014-09-18  9:09     ` Steve Simon
2014-09-18 21:46       ` Winston Kodogo
2014-09-18  3:41 Winston Kodogo
2014-09-18  8:20 ` Ingo Krabbe

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).