Plan 9 from Bell Labs’s /usr/web/sources/contrib/yk/lab/unix9/xfs

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


#!/bin/rc
#
# To publish: cp $% /n/sources/contrib/yk/lab/unix9/

rfork e

fs = $1
mnt = $2
plainfs = `{echo $fs | sed 's/.*@//'}

if(~ $#mnt 0)
	mnt = /n/$plainfs

if(! ~ $fs *@*) {
	if(~ $#sshuser 1)
		user = $sshuser
	fs = $user@$fs
}

echo -n 'fs… '

sshfs -r / -m $mnt $fs &&
echo $mnt

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.