Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

NFS remount option

0 views
Skip to first unread message

der Mouse

unread,
May 26, 1998, 3:00:00 AM5/26/98
to

> NFS server is rebooted.
> NFS client complains of stale filehandles.
> filesystem must be remounted.
> filesystem cannot be unmounted - busy.
> attempts to remount or update fail.
> RTFM fails.

> Under SunOS, there is a "remount" option. How is this accomplished
> under NetBSD, and where is it documented?

That's a good question. This seems to be partially mount -o update
(aka mount -u) and partially mount -o reload. However, -o reload
exists only for ffs and ext2fs, according to a grep in sbin/mount*.
(You can't use -o reload unless the filesystem is read-only, too; see
sys/kern/vfs_syscalls.c. Also, -o reload is not documented in any of
mount(8), mount_ffs(8), or mount_ext2f(8) - at least not in the source
I have handy, which was supped 1998-04-23 - which is probably a bug.)

Unfortunately for what you want to do, in mountnfs()
(sys/nfs/nfs_vfsops.c), I see the following

if (mp->mnt_flag & MNT_UPDATE) {
nmp = VFSTONFS(mp);
/* update paths, file handles, etc, here XXX */
m_freem(nam);
return (0);
} else {

so it looks as though -u (or -o update) is *supposed* to do what you
want, but is currently unimplemented.

der Mouse

mo...@rodents.montreal.qc.ca
7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B

0 new messages