Re: [9fans] Fwd: Reading from FS with inaccurate file sizes? - Plan9

This is a discussion on Re: [9fans] Fwd: Reading from FS with inaccurate file sizes? - Plan9 ; On Fri, Mar 23, 2007 at 08:41:27PM -0000, CDeVilbiss@gmail.com wrote: >Can someone use 9pfuse -D and try out this test? % 9pfuse -D unix!`{namespace}^/plumb /mnt/plumb -> Rversion tag 65535 msize 8192 version '9P2000' -> Rattach tag 0 qid (0000000000000000 0 ...

+ Reply to Thread
Results 1 to 3 of 3

Thread: Re: [9fans] Fwd: Reading from FS with inaccurate file sizes?

  1. Re: [9fans] Fwd: Reading from FS with inaccurate file sizes?

    On Fri, Mar 23, 2007 at 08:41:27PM -0000, CDeVilbiss@gmail.com wrote:
    >Can someone use 9pfuse -D and try out this test?


    % 9pfuse -D unix!`{namespace}^/plumb /mnt/plumb
    <- Tversion tag 0 msize 8192 version '9P2000'
    -> Rversion tag 65535 msize 8192 version '9P2000'
    <- Tattach tag 0 fid 0 afid -1 uname kris aname
    -> Rattach tag 0 qid (0000000000000000 0 d)
    FUSE -> len 16 unique 0 uid 0 gid 998 pid 17141 Init major 7 minor 8
    FUSE <- unique 0 (Init) major 7 minor 5 max_write 4096
    FUSE -> len 0 unique 0 uid 0 gid 998 pid 17141 Statfs
    FUSE <- unique 0 (Statfs) blocks 0 bfree 0 bavail 0 files 0 ffree 0 bsize 0namelen 0 frsize 0
    FUSE -> len 0 unique 0 uid 0 gid 998 pid 17141 Getattr nodeid 0x1
    /* Above 2 lines repeated many times; elided */
    <- Tstat tag 0 fid 0
    -> Rstat tag 0 stat '.' 'kris' 'kris' 'kris' q (0000000000000000 0 d) m 020000000500 at 1173567833 mt 1173567833 l 0 t 3328 d 134563933
    FUSE <- unique 0 (Getattr) attr_valid 1 ino 0x8000000000000000 size 0 blocks 0 atime 1173567833 mtime 1173567833 ctime 1173567833 mode 040500 nlink 1 uid 1000 gid 998 rdev 0
    wc /mnt/plumb/rules
    FUSE -> len 6 unique 0 uid 1000 gid 998 pid 17888 Lookup nodeid 0x1 name 'rules'
    <- Twalk tag 0 fid 0 newfid 1 nwname 1 0:rules
    -> Rwalk tag 0 nwqid 1 00000000000000001 0 )
    <- Tstat tag 0 fid 1
    -> Rstat tag 0 stat 'rules' 'kris' 'kris' 'kris' q (0000000000000001 0 ) m0600 at 1173567833 mt 1173567833 l 0 t 3328 d 134563933
    FUSE <- unique 0 (Lookup) nodeid 0x2 gen 0x1 entry_valid 1 attr_valid 1 ino 0x1 size 0 blocks 0 atime 1173567833 mtime 1173567833 ctime 1173567833 mode 0100600 nlink 1 uid 1000 gid 998 rdev 0
    FUSE -> len 8 unique 0 uid 1000 gid 998 pid 17888 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 1000 gid 998 pid 17888 Getattr nodeid 0x2
    <- Tstat tag 0 fid 1
    -> Rstat tag 0 stat 'rules' 'kris' 'kris' 'kris' q (0000000000000001 0 ) m0600 at 1173567833 mt 1173567833 l 0 t 3328 d 134563933
    FUSE <- unique 0 (Getattr) attr_valid 1 ino 0x1 size 0 blocks 0 atime 1173567833 mtime 1173567833 ctime 1173567833 mode 0100600 nlink 1 uid 1000 gid 998 rdev 0
    FUSE -> len 24 unique 0 uid 1000 gid 998 pid 17888 Read nodeid 0x2 fh 0x3 offset 0 size 8192
    <- Tread tag 0 fid 2 offset 0 count 4096
    -> Rread tag 0 count 3178 '706c616e 393d2f75 73722f6c 6f63616c 2f706c61 6e390a0a 65646974 6f723d61 636d650a 0a616464 72656c65 6d3d2728 28233f5b 302d395d 2b297c28 2f5b412d'
    FUSE <- unique 0 (Read) size 3178
    FUSE -> len 24 unique 0 uid 1000 gid 998 pid 17888 Read nodeid 0x2 fh 0x3 offset 3178 size 8192
    <- Tread tag 0 fid 2 offset 3178 count 4096
    -> Rread tag 0 count 0 ''
    FUSE <- unique 0 (Read) size 0
    130 362 3178 /mnt/plumb/rules
    % FUSE -> len 24 unique 0 uid 1000 gid 998 pid 17888 Release nodeid 0x2 fh 0x3 flags 0
    <- Tclunk tag 0 fid 2
    -> Rclunk tag 0
    cat lib/plumbing >/mnt/plumb/rules
    FUSE -> len 6 unique 0 uid 1000 gid 998 pid 14894 Lookup nodeid 0x1 name 'rules'
    <- Twalk tag 0 fid 0 newfid 2 nwname 1 0:rules
    -> Rwalk tag 0 nwqid 1 00000000000000001 0 )
    <- Tstat tag 0 fid 2
    -> Rstat tag 0 stat 'rules' 'kris' 'kris' 'kris' q (0000000000000001 0 ) m0600 at 1173567833 mt 1173567833 l 0 t 3328 d 134563933
    FUSE <- unique 0 (Lookup) nodeid 0x3 gen 0x2 entry_valid 1 attr_valid 1 ino 0x1 size 0 blocks 0 atime 1173567833 mtime 1173567833 ctime 1173567833 mode 0100600 nlink 1 uid 1000 gid 998 rdev 0
    FUSE -> len 8 unique 0 uid 1000 gid 998 pid 14894 Open nodeid 0x3 flags 0x1mode 0
    <- Twalk tag 0 fid 2 newfid 3 nwname 0
    -> Rwalk tag 0 nwqid 0
    <- Topen tag 0 fid 3 mode 1
    -> Ropen tag 0 qid (0000000000000001 0 ) iounit 0
    FUSE <- unique 0 (Open) fh 0x4 flags 0x1
    FUSE -> len 0 unique 0 uid 1000 gid 998 pid 14894 Getattr nodeid 0x3
    <- Tstat tag 0 fid 2
    -> Rstat tag 0 stat 'rules' 'kris' 'kris' 'kris' q (0000000000000001 0 ) m0600 at 1173567833 mt 1173567833 l 0 t 3328 d 134563933
    FUSE <- unique 0 (Getattr) attr_valid 1 ino 0x1 size 0 blocks 0 atime 1173567833 mtime 1173567833 ctime 1173567833 mode 0100600 nlink 1 uid 1000 gid 998 rdev 0
    FUSE -> len 88 unique 0 uid 1000 gid 998 pid 14894 Setattr nodeid 0x3 size 0
    <- Twalk tag 0 fid 2 newfid 4 nwname 0
    -> Rwalk tag 0 nwqid 0
    <- Topen tag 0 fid 4 mode 17
    -> Rerror tag 0 ename file already open
    FUSE <- unique 0 error -34 Result too large
    <- Tclunk tag 0 fid 4
    /mnt/plumb/rules: rc: can't open: Result too large
    % FUSE -> len 24 unique 0 uid 1000 gid 998 pid 14894 Release nodeid 0x3 fh 0x4 flags 0x1
    <- Tclunk tag 0 fid 3
    -> Rclunk tag 0
    -> Rclunk tag 1
    FUSE <- unique 0 (Release)
    wc /mnt/plumb/rules
    FUSE -> len 6 unique 0 uid 1000 gid 998 pid 18634 Lookup nodeid 0x1 name 'rules'
    <- Twalk tag 0 fid 0 newfid 3 nwname 1 0:rules
    -> Rwalk tag 1 nwqid 1 00000000000000001 0 )
    <- Tstat tag 0 fid 3
    -> Rstat tag 1 stat 'rules' 'kris' 'kris' 'kris' q (0000000000000001 0 ) m0600 at 1173567833 mt 1173567833 l 0 t 3328 d 134563933
    FUSE <- unique 0 (Lookup) nodeid 0x4 gen 0x2 entry_valid 1 attr_valid 1 ino 0x1 size 0 blocks 0 atime 1173567833 mtime 1173567833 ctime 1173567833 mode 0100600 nlink 1 uid 1000 gid 998 rdev 0
    FUSE -> len 8 unique 0 uid 1000 gid 998 pid 18634 Open nodeid 0x4 flags 0 mode 0
    <- Twalk tag 0 fid 3 newfid 4 nwname 0
    -> Rwalk tag 1 nwqid 0
    <- Topen tag 0 fid 4 mode 0
    -> Ropen tag 1 qid (0000000000000001 0 ) iounit 0
    FUSE <- unique 0 (Open) fh 0x5 flags 0x1
    FUSE -> len 0 unique 0 uid 1000 gid 998 pid 18634 Getattr nodeid 0x4
    <- Tstat tag 0 fid 3
    -> Rstat tag 1 stat 'rules' 'kris' 'kris' 'kris' q (0000000000000001 0 ) m0600 at 1173567833 mt 1173567833 l 0 t 3328 d 134563933
    FUSE <- unique 0 (Getattr) attr_valid 1 ino 0x1 size 0 blocks 0 atime 1173567833 mtime 1173567833 ctime 1173567833 mode 0100600 nlink 1 uid 1000 gid 998 rdev 0
    FUSE -> len 24 unique 0 uid 1000 gid 998 pid 18634 Read nodeid 0x4 fh 0x5 offset 0 size 8192
    <- Tread tag 0 fid 4 offset 0 count 4096
    -> Rread tag 1 count 3178 '706c616e 393d2f75 73722f6c 6f63616c 2f706c61 6e390a0a 65646974 6f723d61 636d650a 0a616464 72656c65 6d3d2728 28233f5b 302d395d 2b297c28 2f5b412d'
    FUSE <- unique 0 (Read) size 3178
    FUSE -> len 24 unique 0 uid 1000 gid 998 pid 18634 Read nodeid 0x4 fh 0x5 offset 3178 size 8192
    <- Tread tag 0 fid 4 offset 3178 count 4096
    -> Rread tag 1 count 0 ''
    FUSE <- unique 0 (Read) size 0
    130 362 3178 /mnt/plumb/rules
    % FUSE -> len 24 unique 0 uid 1000 gid 998 pid 18634 Release nodeid 0x4 fh 0x5 flags 0
    <- Tclunk tag 0 fid 4
    -> Rclunk tag 1

    --
    Kris Maglione

    Some of it plus the rest of it is all of it.

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v2.0.2 (FreeBSD)

    iD8DBQFGBFc+seQZD8Aui4wRAhAfAJ9sKKNszyyBBgM4k3JkcD p5W9csaQCeJ+Zh
    PT4N2vwrGsHu921IymWPzWc=
    =N+zy
    -----END PGP SIGNATURE-----


  2. Re: [9fans] Fwd: Reading from FS with inaccurate file sizes?

    this doesn't look right at all. almost all the actions in this trace
    seem to be duplicated. e.g. two Rstats of 'rules' in a row.

    and for some reason, fuse is trying to write /mnt/plumb/rules
    a second time before closing the first instance. this gives an
    error on the second write and only that is being returned.

    <- Topen tag 0 fid 4 mode 17
    -> Rerror tag 0 ename file already open
    FUSE <- unique 0 error -34 Result too large
    <- Tclunk tag 0 fid 4
    /mnt/plumb/rules: rc: can't open: Result too large

    - erik

  3. Re: [9fans] Fwd: Reading from FS with inaccurate file sizes?

    On 3/23/07, erik quanstrom wrote:
    >
    > this doesn't look right at all. almost all the actions in this trace
    > seem to be duplicated. e.g. two Rstats of 'rules' in a row.
    >
    > and for some reason, fuse is trying to write /mnt/plumb/rules
    > a second time before closing the first instance. this gives an
    > error on the second write and only that is being returned.
    >
    > <- Topen tag 0 fid 4 mode 17
    > -> Rerror tag 0 ename file already open
    > FUSE <- unique 0 error -34 Result too large
    > <- Tclunk tag 0 fid 4
    > /mnt/plumb/rules: rc: can't open: Result too large
    >
    > - erik
    >



+ Reply to Thread