From: Russ Cox <russcox@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu>
Subject: Re: [9fans] file server, dotdot
Date: Fri, 5 Aug 2005 11:27:18 -0400 [thread overview]
Message-ID: <ee9e417a050805082749bd5da0@mail.gmail.com> (raw)
In-Reply-To: <Pine.LNX.4.60.0508050952430.25352@athena>
> baron% ls -l /dev/sdC0/../../../../../
> d-r-xr-xr-x S 0 dennis dennis 0 Jun 16 19:13 /sdC0
> d-r-xr-xr-x S 0 dennis dennis 0 Jun 16 19:13 /sdE0
> d-r-xr-xr-x S 0 dennis dennis 0 Jun 16 19:13 /sdF0
> --rw-r----- S 0 dennis dennis 0 Jun 16 19:13 /sdctl
> --rw-r----- S 0 dennis dennis 0 Jun 16 19:13 /sdstat
> baron% cd /dev/sdC0
> baron% cd ../../../../
> baron% lc
> sdC0 sdE0 sdF0 sdctl sdstat
> baron%
This is exactly the kind of bug I expect Steve has committed:
ethel% ls -qd '#S'
(0000000000000001 0 80) '#S'
ethel% ls -qd '#S/sdC0'
(0000000004300004 0 80) '#S/sdC0'
ethel% ls -qd '#S/sdC0/..'
(fffffffffffff001 0 80) '#S'
ethel%
Notice that the qid for the root doesn't match the qid
that dotdot gives, so the mount driver doesn't realize
that #S/sdC0/.. is the same path as #S/ (according to
the qids, it isn't!).
There is a fixed devsd.c on sources.
Russ
prev parent reply other threads:[~2005-08-05 15:27 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-05 10:03 Steve Simon
2005-08-05 14:34 ` Russ Cox
2005-08-09 9:47 ` Steve Simon
2005-08-05 14:54 ` Sam
2005-08-05 15:27 ` Russ Cox [this message]
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=ee9e417a050805082749bd5da0@mail.gmail.com \
--to=russcox@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).