9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "Colin DeVilbiss" <cdevilbiss@gmail.com>
To: "Fans of the OS Plan 9 from Bell Labs" <9fans@cse.psu.edu>
Subject: Re: [9fans] Re: 9pfuse-mounted files don't "work" (Mac OS X on Power)
Date: Thu, 22 Mar 2007 16:16:30 -0500	[thread overview]
Message-ID: <6ec892cd0703221416s5dcf634es5a9a2d58fc81cfca@mail.gmail.com> (raw)
In-Reply-To: <4602EBA5.6060600@conducive.org>

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

On 3/22/07, W B Hacker <wbh@conducive.org> wrote:
> Is this installed on its own partition? And if so, how formatted?
>
> And if not, is the underlying fs the OS X default hfs/hfs+, or is it FAT or UFS?

The OS is backed by just one disk, formatted with the OS X default,
but I'm not sure I see how that's relevant to the MacFUSE case...

> Kris Maglione wrote:
> > I'd be interested in the debugging output for files that actually work.
> > Your initial debugging output shows an iounit of 0 on Ropen calls, and
> > if that's accurate, finding out why would be of some use.

3 files attached:
cat.works.txt: plumber gives accurate length, cat works as expected
tail.works.txt: plumber gives accurate length, tail works as expected
tail.screwy.txt: plumber hacked to return length of 1, tail gives
output that is exactly the same as cat, except that the second char
(the "l" in "plan9=/usr/local/plan9") is missing, as if it were
"superseded" by the "p" from the length-1 read.

Colin

[-- Attachment #2: cat.works.txt --]
[-- Type: text/plain, Size: 1836 bytes --]

FUSE -> len 8 unique 0 uid 501 gid 501 pid 1350 Access nodeid 0x1 mask 0x1
<- Twalk tag 0 fid 0 newfid 1 nwname 0
-> Rwalk tag 0 nwqid 0
<- Topen tag 0 fid 1 mode 0
-> Ropen tag 0 qid (0000000000000000 0 d) iounit 0
<- Tclunk tag 0 fid 1
-> Rclunk tag 0
FUSE <- unique 0 (Access)

FUSE -> len 6 unique 0 uid 501 gid 501 pid 1350 Lookup nodeid 0x1 name 'rules'
<- Twalk tag 0 fid 0 newfid 1 nwname 1 0:rules
-> Rwalk tag 0 nwqid 1 0:(0000000000000001 0 )
<- Tstat tag 0 fid 1
-> Rstat tag 0  stat 'rules' 'colin' 'colin' 'colin' q (0000000000000001 0 ) m 0600 at 1174589729 mt 1174589729 l 2962 t 384 d 3158272
FUSE <- unique 0 (Lookup) nodeid 0x2 gen 0x1 entry_valid 1 attr_valid 1  ino 0x1 size 2962 blocks 1 atime 1174589729 mtime 1174589729 ctime 1174589729 mode 0100600 nlink 1 uid 501 gid 501 rdev 0

FUSE -> len 8 unique 0 uid 501 gid 501 pid 1350 Access nodeid 0x2 mask 0x4
<- Twalk tag 0 fid 1 newfid 2 nwname 0
-> Rwalk tag 0 nwqid 0
<- Topen tag 0 fid 2 mode 0
-> Ropen tag 0 qid (0000000000000001 0 ) iounit 0
<- Tclunk tag 0 fid 2
-> Rclunk tag 0
FUSE <- unique 0 (Access)

FUSE -> len 8 unique 0 uid 501 gid 501 pid 1350 Open nodeid 0x2 flags 0 mode 0
<- Twalk tag 0 fid 1 newfid 2 nwname 0
-> Rwalk tag 0 nwqid 0
<- Topen tag 0 fid 2 mode 0
-> Ropen tag 0 qid (0000000000000001 0 ) iounit 0
FUSE <- unique 0 (Open) fh 0x3 flags 0x1

FUSE -> len 24 unique 0 uid 501 gid 501 pid 1350 Read nodeid 0x2 fh 0x3 offset 0 size 65536
<- Tread tag 0 fid 2 offset 0 count 4096
-> Rread tag 0 count 2962 '706c616e 393d2f75 73722f6c 6f63616c 2f706c61 6e390a0a 65646974 6f723d61 636d650a 0a616464 72656c65 6d3d2728 28233f5b 302d395d 2b297c28 2f5b412d'
FUSE <- unique 0 (Read) size 2962

FUSE -> len 24 unique 0 uid 501 gid 501 pid 1350 Release nodeid 0x2 fh 0x3 flags 0
<- Tclunk tag 0 fid 2
-> Rclunk tag 0
FUSE <- unique 0 (Release)


[-- Attachment #3: tail.works.txt --]
[-- Type: text/plain, Size: 3290 bytes --]

FUSE -> len 8 unique 0 uid 501 gid 501 pid 1352 Access nodeid 0x1 mask 0x1
<- Twalk tag 0 fid 0 newfid 2 nwname 0
-> Rwalk tag 0 nwqid 0
<- Topen tag 0 fid 2 mode 0
-> Ropen tag 0 qid (0000000000000000 0 d) iounit 0
<- Tclunk tag 0 fid 2
-> Rclunk tag 0
FUSE <- unique 0 (Access)

FUSE -> len 6 unique 0 uid 501 gid 501 pid 1352 Lookup nodeid 0x1 name 'rules'
<- Twalk tag 0 fid 0 newfid 2 nwname 1 0:rules
-> Rwalk tag 0 nwqid 1 0:(0000000000000001 0 )
<- Tstat tag 0 fid 2
-> Rstat tag 0  stat 'rules' 'colin' 'colin' 'colin' q (0000000000000001 0 ) m 0600 at 1174589729 mt 1174589729 l 2962 t 384 d 3158272
FUSE <- unique 0 (Lookup) nodeid 0x3 gen 0x2 entry_valid 1 attr_valid 1  ino 0x1 size 2962 blocks 1 atime 1174589729 mtime 1174589729 ctime 1174589729 mode 0100600 nlink 1 uid 501 gid 501 rdev 0

FUSE -> len 8 unique 0 uid 501 gid 501 pid 1352 Access nodeid 0x3 mask 0x4
<- Twalk tag 0 fid 2 newfid 3 nwname 0
-> Rwalk tag 0 nwqid 0
<- Topen tag 0 fid 3 mode 0
-> Ropen tag 0 qid (0000000000000001 0 ) iounit 0
<- Tclunk tag 0 fid 3
-> Rclunk tag 0
FUSE <- unique 0 (Access)

FUSE -> len 8 unique 0 uid 501 gid 501 pid 1352 Open nodeid 0x3 flags 0 mode 0
<- Twalk tag 0 fid 2 newfid 3 nwname 0
-> Rwalk tag 0 nwqid 0
<- Topen tag 0 fid 3 mode 0
-> Ropen tag 0 qid (0000000000000001 0 ) iounit 0
FUSE <- unique 0 (Open) fh 0x4 flags 0x1

FUSE -> len 0 unique 0 uid 501 gid 501 pid 1352 Statfs
FUSE <- unique 0 (Statfs) blocks 0 bfree 0 bavail 0 files 0 ffree 0 bsize 0 namelen 0 frsize 0

FUSE -> len 88 unique 0 uid 501 gid 501 pid 1352 Setattr nodeid 0x3 atime 1174594298.955642
<- Twstat tag 0 fid 2 stat '' '' '' '' q (ffffffffffffffff 4294967295 dalA) m 037777777777 at 1174594298 mt -1 l -1 t 65535 d -1
-> Rerror tag 0 ename permission denied
FUSE <- unique 0 error -13 Permission denied

FUSE -> len 8 unique 0 uid 501 gid 501 pid 1352 Open nodeid 0x3 flags 0x2 mode 0
<- Twalk tag 0 fid 2 newfid 4 nwname 0
-> Rwalk tag 0 nwqid 0
<- Topen tag 0 fid 4 mode 2
-> Ropen tag 0 qid (0000000000000001 0 ) iounit 0
FUSE <- unique 0 (Open) fh 0x5 flags 0x1

FUSE -> len 24 unique 0 uid 501 gid 501 pid 1352 Read nodeid 0x3 fh 0x4 offset 0 size 2962
<- Tread tag 0 fid 3 offset 0 count 2962
-> Rread tag 0 count 2962 '706c616e 393d2f75 73722f6c 6f63616c 2f706c61 6e390a0a 65646974 6f723d61 636d650a 0a616464 72656c65 6d3d2728 28233f5b 302d395d 2b297c28 2f5b412d'
FUSE <- unique 0 (Read) size 2962

FUSE -> len 0 unique 0 uid 501 gid 501 pid 1352 Getattr nodeid 0x3
<- Tstat tag 0 fid 2
-> Rstat tag 0  stat 'rules' 'colin' 'colin' 'colin' q (0000000000000001 0 ) m 0600 at 1174589729 mt 1174589729 l 2962 t 384 d 3158272
FUSE <- unique 0 (Getattr) attr_valid 1 ino 0x1 size 2962 blocks 1 atime 1174589729 mtime 1174589729 ctime 1174589729 mode 0100600 nlink 1 uid 501 gid 501 rdev 0

FUSE -> len 24 unique 0 uid 501 gid 501 pid 1352 Read nodeid 0x3 fh 0x4 offset 0 size 65536
<- Tread tag 0 fid 3 offset 2962 count 4096
-> Rread tag 0 count 0 ''
FUSE <- unique 0 (Read) size 0

FUSE -> len 24 unique 0 uid 501 gid 501 pid 1352 Release nodeid 0x3 fh 0x4 flags 0
FUSE -> len 24 unique 0x1 uid 501 gid 501 pid 1352 Release nodeid 0x3 fh 0x5 flags 0x2
<- Tclunk tag 0 fid 3
<- Tclunk tag 0 fid 4
-> Rclunk tag 0
FUSE <- unique 0 (Release)
-> Rclunk tag 1
FUSE <- unique 0x1 (Release)


[-- Attachment #4: tail.screwy.txt --]
[-- Type: text/plain, Size: 3266 bytes --]

FUSE -> len 8 unique 0 uid 501 gid 501 pid 1488 Access nodeid 0x1 mask 0x1
<- Twalk tag 0 fid 0 newfid 1 nwname 0
-> Rwalk tag 0 nwqid 0
<- Topen tag 0 fid 1 mode 0
-> Ropen tag 0 qid (0000000000000000 0 d) iounit 0
<- Tclunk tag 0 fid 1
-> Rclunk tag 0
FUSE <- unique 0 (Access)

FUSE -> len 6 unique 0 uid 501 gid 501 pid 1488 Lookup nodeid 0x1 name 'rules'
<- Twalk tag 0 fid 0 newfid 1 nwname 1 0:rules
-> Rwalk tag 0 nwqid 1 0:(0000000000000001 0 )
<- Tstat tag 0 fid 1
-> Rstat tag 0  stat 'rules' 'colin' 'colin' 'colin' q (0000000000000001 0 ) m 0600 at 1174594520 mt 1174594520 l 1 t 1 d 3158272
FUSE <- unique 0 (Lookup) nodeid 0x2 gen 0x1 entry_valid 1 attr_valid 1  ino 0x1 size 1 blocks 1 atime 1174594520 mtime 1174594520 ctime 1174594520 mode 0100600 nlink 1 uid 501 gid 501 rdev 0

FUSE -> len 8 unique 0 uid 501 gid 501 pid 1488 Access nodeid 0x2 mask 0x4
<- Twalk tag 0 fid 1 newfid 2 nwname 0
-> Rwalk tag 0 nwqid 0
<- Topen tag 0 fid 2 mode 0
-> Ropen tag 0 qid (0000000000000001 0 ) iounit 0
<- Tclunk tag 0 fid 2
-> Rclunk tag 0
FUSE <- unique 0 (Access)

FUSE -> len 8 unique 0 uid 501 gid 501 pid 1488 Open nodeid 0x2 flags 0 mode 0
<- Twalk tag 0 fid 1 newfid 2 nwname 0
-> Rwalk tag 0 nwqid 0
<- Topen tag 0 fid 2 mode 0
-> Ropen tag 0 qid (0000000000000001 0 ) iounit 0
FUSE <- unique 0 (Open) fh 0x3 flags 0x1

FUSE -> len 0 unique 0 uid 501 gid 501 pid 1488 Statfs
FUSE <- unique 0 (Statfs) blocks 0 bfree 0 bavail 0 files 0 ffree 0 bsize 0 namelen 0 frsize 0

FUSE -> len 88 unique 0 uid 501 gid 501 pid 1488 Setattr nodeid 0x2 atime 1174594552.617945
<- Twstat tag 0 fid 1 stat '' '' '' '' q (ffffffffffffffff 4294967295 dalA) m 037777777777 at 1174594552 mt -1 l -1 t 65535 d -1
-> Rerror tag 0 ename permission denied
FUSE <- unique 0 error -13 Permission denied

FUSE -> len 8 unique 0 uid 501 gid 501 pid 1488 Open nodeid 0x2 flags 0x2 mode 0
<- Twalk tag 0 fid 1 newfid 3 nwname 0
-> Rwalk tag 0 nwqid 0
<- Topen tag 0 fid 3 mode 2
-> Ropen tag 0 qid (0000000000000001 0 ) iounit 0
FUSE <- unique 0 (Open) fh 0x4 flags 0x1

FUSE -> len 24 unique 0 uid 501 gid 501 pid 1488 Read nodeid 0x2 fh 0x3 offset 0 size 1
<- Tread tag 0 fid 2 offset 0 count 1
-> Rread tag 0 count 1 'p'
FUSE <- unique 0 (Read) size 1

FUSE -> len 0 unique 0 uid 501 gid 501 pid 1488 Getattr nodeid 0x2
<- Tstat tag 0 fid 1
-> Rstat tag 0  stat 'rules' 'colin' 'colin' 'colin' q (0000000000000001 0 ) m 0600 at 1174594520 mt 1174594520 l 1 t 1 d 3158272
FUSE <- unique 0 (Getattr) attr_valid 1 ino 0x1 size 1 blocks 1 atime 1174594520 mtime 1174594520 ctime 1174594520 mode 0100600 nlink 1 uid 501 gid 501 rdev 0

FUSE -> len 24 unique 0 uid 501 gid 501 pid 1488 Read nodeid 0x2 fh 0x3 offset 0 size 65536
<- Tread tag 0 fid 2 offset 1 count 4096
-> Rread tag 0 count 2961 '6c616e39 3d2f7573 722f6c6f 63616c2f 706c616e 390a0a65 6469746f 723d6163 6d650a0a 61646472 656c656d 3d272828 233f5b30 2d395d2b 297c282f 5b412d5a'
FUSE <- unique 0 (Read) size 2961

FUSE -> len 24 unique 0 uid 501 gid 501 pid 1488 Release nodeid 0x2 fh 0x3 flags 0
FUSE -> len 24 unique 0x1 uid 501 gid 501 pid 1488 Release nodeid 0x2 fh 0x4 flags 0x2
<- Tclunk tag 0 fid 2
<- Tclunk tag 0 fid 3
-> Rclunk tag 0
FUSE <- unique 0 (Release)
-> Rclunk tag 1
FUSE <- unique 0x1 (Release)


  reply	other threads:[~2007-03-22 21:16 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-22  3:59 [9fans] " Colin DeVilbiss
2007-03-22 11:40 ` [9fans] Fwd: " Colin DeVilbiss
2007-03-22 19:13   ` [9fans] " Colin DeVilbiss
2007-03-22 19:17     ` Francisco J Ballesteros
2007-03-22 19:54     ` Kris Maglione
2007-03-22 20:48       ` W B Hacker
2007-03-22 21:16         ` Colin DeVilbiss [this message]
2007-03-22 21:25           ` W B Hacker
2007-03-27 12:41 ` [9fans] " Russ Cox

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=6ec892cd0703221416s5dcf634es5a9a2d58fc81cfca@mail.gmail.com \
    --to=cdevilbiss@gmail.com \
    --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).