* Re: [9fans] dosmnt
@ 2005-02-25 7:58 YAMANASHI Takeshi
2005-02-25 9:11 ` arisawa
0 siblings, 1 reply; 10+ messages in thread
From: YAMANASHI Takeshi @ 2005-02-25 7:58 UTC (permalink / raw)
To: arisawa, 9fans
> > the real fix is not to bind '#S' onto /dev twice.
> But why Kernel shows same things twice?
This thread might be helpful:
http://lists.cse.psu.edu/archives/9fans/2003-March/023167.html
--
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [9fans] dosmnt
2005-02-25 7:58 [9fans] dosmnt YAMANASHI Takeshi
@ 2005-02-25 9:11 ` arisawa
2005-02-25 10:40 ` arisawa
0 siblings, 1 reply; 10+ messages in thread
From: arisawa @ 2005-02-25 9:11 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
Hello,
>>> the real fix is not to bind '#S' onto /dev twice.
>> But why Kernel shows same things twice?
>
> This thread might be helpful:
> http://lists.cse.psu.edu/archives/9fans/2003-March/023167.html
>
Thanks. Great help! In the article Russ says:
> Ls tells the truth! I see no value in causing it to lie.
I agree completely !
Ls should show as kernel told ls.
Therefore the problem is not in ls.
Kernel shows ghosts -- just my impression.
Kenji Arisawa
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [9fans] dosmnt
2005-02-25 9:11 ` arisawa
@ 2005-02-25 10:40 ` arisawa
2005-02-25 10:42 ` Charles Forsyth
0 siblings, 1 reply; 10+ messages in thread
From: arisawa @ 2005-02-25 10:40 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
Hello,
I said:
> Kernel shows ghosts -- just my impression.
I considered the problem.
My conclusion is:
/dev is a virtual place.
therefore dosmnt should be fixed as bellow:
simply replace
x=(`{echo /dev/sd??/dos*})
to
x=(`{echo '#S'^/sd??/dos*})
Kenji Arisawa
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [9fans] dosmnt
2005-02-25 10:40 ` arisawa
@ 2005-02-25 10:42 ` Charles Forsyth
2005-02-25 12:49 ` arisawa
0 siblings, 1 reply; 10+ messages in thread
From: Charles Forsyth @ 2005-02-25 10:42 UTC (permalink / raw)
To: 9fans
[-- Attachment #1: Type: text/plain, Size: 186 bytes --]
you might have imported devices from somewhere else
to the local /dev
generally it's best to avoid using # names unless it's
essentially to know you're dealing with a local thing.
[-- Attachment #2: Type: message/rfc822, Size: 2589 bytes --]
From: arisawa@ar.aichi-u.ac.jp
To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu>
Subject: Re: [9fans] dosmnt
Date: Fri, 25 Feb 2005 19:40:26 +0900
Message-ID: <1d7da70b9aac8ec0df2c333c9c69d300@ar.aichi-u.ac.jp>
Hello,
I said:
> Kernel shows ghosts -- just my impression.
I considered the problem.
My conclusion is:
/dev is a virtual place.
therefore dosmnt should be fixed as bellow:
simply replace
x=(`{echo /dev/sd??/dos*})
to
x=(`{echo '#S'^/sd??/dos*})
Kenji Arisawa
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [9fans] dosmnt
2005-02-25 10:42 ` Charles Forsyth
@ 2005-02-25 12:49 ` arisawa
2005-02-25 15:51 ` Russ Cox
0 siblings, 1 reply; 10+ messages in thread
From: arisawa @ 2005-02-25 12:49 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
Hello,
> you might have imported devices from somewhere else
> to the local /dev
we have this problem...
term% cpu -h hera
hera% ls -l /dev
....
d-r-xr-xr-x M 8967 arisawa arisawa 0 Feb 16 12:57 /dev/sdC0
d-r-xr-xr-x S 0 bootes bootes 0 Dec 28 14:07 /dev/sdC0
d-r-xr-xr-x M 8967 arisawa arisawa 0 Feb 16 12:57 /dev/sdC0
d-r-xr-xr-x M 8967 arisawa arisawa 0 Feb 16 12:57 /dev/sdC1
d-r-xr-xr-x M 8967 arisawa arisawa 0 Feb 16 12:57 /dev/sdC1
d-r-xr-xr-x M 8967 arisawa arisawa 0 Feb 16 12:57 /dev/sdD0
d-r-xr-xr-x S 0 bootes bootes 0 Dec 28 14:07 /dev/sdD0
d-r-xr-xr-x M 8967 arisawa arisawa 0 Feb 16 12:57 /dev/sdD0
d-r-xr-xr-x M 8967 arisawa arisawa 0 Feb 16 12:57 /dev/sdD1
d-r-xr-xr-x M 8967 arisawa arisawa 0 Feb 16 12:57 /dev/sdD1
...
hera%
we see mixed devices.
what do we expect by
hera% c:
or by
hera% d:
?
Kenji Arisawa
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [9fans] dosmnt
2005-02-25 12:49 ` arisawa
@ 2005-02-25 15:51 ` Russ Cox
0 siblings, 0 replies; 10+ messages in thread
From: Russ Cox @ 2005-02-25 15:51 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
ls /dev/sd*/dos | uniq
gives you a list of dos partitions.
the first is c:, the second is d:, etc.
russ
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [9fans] dosmnt
@ 2005-02-25 11:02 Aharon Robbins
0 siblings, 0 replies; 10+ messages in thread
From: Aharon Robbins @ 2005-02-25 11:02 UTC (permalink / raw)
To: 9fans
Maybe use sort -u to remove duplicates?
Arnold
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [9fans] dosmnt
2005-02-24 23:37 ` Russ Cox
@ 2005-02-25 7:38 ` arisawa
0 siblings, 0 replies; 10+ messages in thread
From: arisawa @ 2005-02-25 7:38 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
Hello,
> the real fix is not to bind '#S' onto /dev twice.
I agree.
But why Kernel shows same things twice?
Kenji Arisawa
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [9fans] dosmnt
2005-02-23 0:36 ` [9fans] dosmnt arisawa
@ 2005-02-24 23:37 ` Russ Cox
2005-02-25 7:38 ` arisawa
0 siblings, 1 reply; 10+ messages in thread
From: Russ Cox @ 2005-02-24 23:37 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
> The fix is to replace last line
the real fix is not to bind '#S' onto /dev twice.
but i changed dosmnt anyway.
russ
^ permalink raw reply [flat|nested] 10+ messages in thread
* [9fans] dosmnt
2005-02-22 23:54 [9fans] Growing a venti Steve Simon
@ 2005-02-23 0:36 ` arisawa
2005-02-24 23:37 ` Russ Cox
0 siblings, 1 reply; 10+ messages in thread
From: arisawa @ 2005-02-23 0:36 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
Hello,
dosmnt does not work correctly.
because
term% echo /dev/sd*/dos*
/dev/sdC0/dos /dev/sdC0/dos /dev/sdD0/dos /dev/sdD0/dos
current codes are:
term% cat /bin/dosmnt
#!/bin/rc
rfork e
if(! ~ $#* 2){
echo 'usage: dosmnt N mntpt' >[1=2]
exit usage
}
x=(`{echo /dev/sd??/dos*})
if(test $#x -lt $1){
echo 'not that many dos disks' >[1=2]
exit usage
}
if(! test -f /srv/dos)
dossrv >/dev/null </dev/null >[2]/dev/null
mount -c /srv/dos $2 $x($1)
term%
The fix is to replace last line
mount -c /srv/dos $2 $x($1)
to
g=$x(1)
for(f in $x)
if(! ~ $f $g) g=($g $f)
mount -c /srv/dos $2 $g($1)
Kenji Arisawa
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2005-02-25 15:51 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-25 7:58 [9fans] dosmnt YAMANASHI Takeshi
2005-02-25 9:11 ` arisawa
2005-02-25 10:40 ` arisawa
2005-02-25 10:42 ` Charles Forsyth
2005-02-25 12:49 ` arisawa
2005-02-25 15:51 ` Russ Cox
-- strict thread matches above, loose matches on Subject: below --
2005-02-25 11:02 Aharon Robbins
2005-02-22 23:54 [9fans] Growing a venti Steve Simon
2005-02-23 0:36 ` [9fans] dosmnt arisawa
2005-02-24 23:37 ` Russ Cox
2005-02-25 7:38 ` arisawa
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).