From owner-freebsd-hackers Tue Dec 3 04:44:30 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id EAA09604 for hackers-outgoing; Tue, 3 Dec 1996 04:44:30 -0800 (PST) Received: from cheops.anu.edu.au (avalon@cheops.anu.edu.au [150.203.149.24]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id EAA09594 for ; Tue, 3 Dec 1996 04:44:27 -0800 (PST) Message-Id: <199612031244.EAA09594@freefall.freebsd.org> Received: by cheops.anu.edu.au (1.37.109.16/16.2) id AA286237107; Tue, 3 Dec 1996 23:45:07 +1100 From: Darren Reed Subject: Re: How to unexport something To: imp@village.org (Warner Losh) Date: Tue, 3 Dec 1996 23:45:07 +1100 (EDT) Cc: hackers@freebsd.org In-Reply-To: <199612030616.XAA25038@rover.village.org> from "Warner Losh" at Dec 2, 96 11:16:24 pm X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk In some mail from Warner Losh, sie said: > > > Is there an easy way to unexport something? I'd like to unmount my > JAZ drive, but it is exported... Hmmm, looks like you'd need to edit the exportfs file and restart mountd. An "exportfs" interface similar to Sun's would be nice... /usr/etc/exportfs [ -aiuv ] [ -o options ] [ pathname ] OPTIONS -a All. Export all pathnames listed in /etc/exports, or if -u is specified, unexport all of the currently exported pathnames. -i Ignore the options in /etc/exports. Normally, exportfs will consult /etc/exports for the options associated with the exported pathname. -u Unexport the indicated pathnames. -v Verbose. Print each directory or filename as it is exported or unexported. -o options Specify a comma-separated list of optional characteris- tics for the pathname being exported. options can be selected from among: ... NetBSD could do with one of these too, if it is missing... Usually, when something is added to /etc/exports, you just run "exportfs -va" or if you wanted to export /usr/spool/mail you could do "exportfs /var/spool/mail", etc. Darren