From: arisawa@ar.aichi-u.ac.jp
To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu>
Subject: [9fans] dosmnt
Date: Wed, 23 Feb 2005 09:36:00 +0900 [thread overview]
Message-ID: <82cf3e4cdd0f807a80cf7dc93c2a0236@ar.aichi-u.ac.jp> (raw)
In-Reply-To: <0393eb65eb223e5f9b91366aa91c2013@quintile.net>
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
next prev parent reply other threads:[~2005-02-23 0:36 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-22 21:21 [9fans] Growing a venti Dave Eckhardt
2005-02-22 23:54 ` Steve Simon
2005-02-23 0:36 ` arisawa [this message]
2005-02-24 23:37 ` [9fans] dosmnt Russ Cox
2005-02-25 7:38 ` arisawa
2005-02-25 7:58 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
2005-02-25 11:02 Aharon Robbins
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=82cf3e4cdd0f807a80cf7dc93c2a0236@ar.aichi-u.ac.jp \
--to=arisawa@ar.aichi-u.ac.jp \
--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).