9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Re: [9fans] 9fs/9auth for FreeBSD
@ 2001-03-28 21:50 Russ Cox
  2001-03-28 21:58 ` Lyndon Nerenberg
  2001-03-28 22:22 ` Alexander Viro
  0 siblings, 2 replies; 24+ messages in thread
From: Russ Cox @ 2001-03-28 21:50 UTC (permalink / raw)
  To: 9fans

    O_APPEND probably isn't needed on BSD kernels, either. That was me
    being paranoid based on the comment that writes didn't always get
    treated as appends.

No, it's needed.  The behavior on FreeBSD really is what
I said -- if you do a write with a file offset
that is not the end of the file, the write fails.
It doesn't pretend the offset really is at the 
end (as Plan 9 and apparently Linux do).  It fails.
Opening O_APPEND should, at least on a single system,
insulate you from worrying about the offset.
I hadn't thought of that.  (My Unix instincts
continue to dull.)

Russ


^ permalink raw reply	[flat|nested] 24+ messages in thread
* Re: [9fans] 9fs/9auth for FreeBSD
@ 2001-04-02  9:28 Russ Cox
  0 siblings, 0 replies; 24+ messages in thread
From: Russ Cox @ 2001-04-02  9:28 UTC (permalink / raw)
  To: 9fans

  O_APPEND was certainly included in the 1988 IEEE 1003.1 (POSIX)
  specification; it's defined in <fcntl.h> and means that the file
  offset is to be set to the end of the file prior to each write.

This may be true but O_APPEND != append-only, which
is what Viro was talking about.  O_APPEND came up only
as a workaround to the BSD append-only semantics.

Russ


^ permalink raw reply	[flat|nested] 24+ messages in thread
* Re: [9fans] 9fs/9auth for FreeBSD
@ 2001-03-28  3:46 Russ Cox
  2001-03-28 19:26 ` Lyndon Nerenberg
  0 siblings, 1 reply; 24+ messages in thread
From: Russ Cox @ 2001-03-28  3:46 UTC (permalink / raw)
  To: 9fans

that was me.  the u9fs is for 9P2000 although it
supports 9P1 for backwards compatibility and testing.
the 9auth is inspired by pace willisson (sp?)'s 
freebsd "il over raw sockets" auth server but not
much of his code remains, if any.

both are tcp only, running out of inetd, so they
don't depend on the freebsd il patches.  the biggest
shortcoming is the lack of a portable way to implement
append-only files.  freebsd (and presumably the other
unix clones) take append-only to mean "only appends
succeed" rather than "all writes are treated as
appends", and there's no standard way to enable even this.

these programs aren't online, but i'll put them up next
week (i'm away from the freebsd machine) for the
interested parties.

russ


^ permalink raw reply	[flat|nested] 24+ messages in thread
* [9fans] 9fs/9auth for FreeBSD
@ 2001-03-27 23:53 Lyndon Nerenberg
  2001-03-28  0:32 ` Christopher Nielsen
  0 siblings, 1 reply; 24+ messages in thread
From: Lyndon Nerenberg @ 2001-03-27 23:53 UTC (permalink / raw)
  To: 9fans

A while back someone mentioned having an updated fileserver,  and an auth
servicer, running on FreeBSD. Was that code put online anywhere, and
did someone save a pointer to it?

--lyndon


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

end of thread, other threads:[~2001-04-02 12:58 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-03-28 21:50 [9fans] 9fs/9auth for FreeBSD Russ Cox
2001-03-28 21:58 ` Lyndon Nerenberg
2001-03-28 22:23   ` Alexander Viro
2001-03-28 22:28     ` Alexander Viro
2001-03-28 22:56       ` Lyndon Nerenberg
2001-03-28 23:30         ` Lyndon Nerenberg
2001-03-28 23:35         ` Alexander Viro
2001-03-28 23:44           ` Lyndon Nerenberg
2001-03-29  0:20             ` Alexander Viro
2001-04-02  8:48       ` Douglas A. Gwyn
2001-04-02 10:04         ` Alexander Viro
2001-04-02 12:58           ` Boyd Roberts
2001-03-28 22:22 ` Alexander Viro
2001-04-02  8:49   ` Douglas A. Gwyn
2001-04-02 10:23     ` Alexander Viro
  -- strict thread matches above, loose matches on Subject: below --
2001-04-02  9:28 Russ Cox
2001-03-28  3:46 Russ Cox
2001-03-28 19:26 ` Lyndon Nerenberg
2001-03-28 19:35   ` Alexander Viro
2001-03-28 19:48     ` Lyndon Nerenberg
2001-03-29  8:27   ` Boyd Roberts
2001-03-27 23:53 Lyndon Nerenberg
2001-03-28  0:32 ` Christopher Nielsen
2001-03-28 19:32   ` Lyndon Nerenberg

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