8b5a6d67db
you to push the same host into its NFS export lists twice, but mountd tries to do it anyway. This means that putting: /some_file_system -ro host1 host1 in your /etc/exports file causes an error. This is bogus: mountd should be smart enough to ignore the second instance of host1. This can be a problem in some configurations that use netgroups. For example, each host in my netgroups database is has two entries: startide (startide,-,) (startide.ctr.columbia.edu,-,) When mountd sees this, it tries to put startide.ctr.columbia.edu into the export list *twice*. Just listing 'startide' /etc/exports list will also screw up because mountd will try to resolve the netgroup 'startide' instead of the hostname 'startide.' My solution is watch for duplicate entries in get_host() and mark them as grouptype GT_IGNORE, which do_mount() will now cheefully throw away. This is a bit of a kludge, but it was the least obtrusive fix I could come up with. Also silenced a compiler warning: arguments passwd to xdr_long() should be u_long, not int. :) |
||
---|---|---|
.. | ||
adjkerntz | ||
badsect | ||
bsdlabel | ||
clri | ||
comcontrol | ||
cxconfig | ||
disklabel | ||
dmesg | ||
dset | ||
dump | ||
dumpfs | ||
dumplfs | ||
fastboot | ||
fdisk | ||
fsck | ||
fsck_ffs | ||
fsck_ifs | ||
ft | ||
i386 | ||
ifconfig | ||
init | ||
ip_mroute_mod | ||
ipfw | ||
ldconfig | ||
md5 | ||
mknod | ||
modload | ||
modunload | ||
mount | ||
mount_cd9660 | ||
mount_fdesc | ||
mount_ifs | ||
mount_kernfs | ||
mount_lfs | ||
mount_msdos | ||
mount_msdosfs | ||
mount_nfs | ||
mount_null | ||
mount_nullfs | ||
mount_portal | ||
mount_portalfs | ||
mount_procfs | ||
mount_umap | ||
mount_umapfs | ||
mount_union | ||
mount_unionfs | ||
mountd | ||
newfs | ||
newlfs | ||
nfsd | ||
nfsiod | ||
nologin | ||
ping | ||
quotacheck | ||
rdisc | ||
reboot | ||
restore | ||
route | ||
savecore | ||
scsi | ||
scsiformat | ||
shutdown | ||
slattach | ||
startslip | ||
swapon | ||
sysctl | ||
sysinstall | ||
tunefs | ||
umount | ||
DISCLAIMER | ||
Makefile | ||
Makefile.inc |