From owner-cvs-src@FreeBSD.ORG Sat Dec 16 15:50:39 2006 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id AEE8216A47E; Sat, 16 Dec 2006 15:50:39 +0000 (UTC) (envelope-from rodrigc@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.FreeBSD.org (Postfix) with ESMTP id 832DD43CBA; Sat, 16 Dec 2006 15:50:36 +0000 (GMT) (envelope-from rodrigc@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id kBGFoaoe003790; Sat, 16 Dec 2006 15:50:36 GMT (envelope-from rodrigc@repoman.freebsd.org) Received: (from rodrigc@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id kBGFoaV1003789; Sat, 16 Dec 2006 15:50:36 GMT (envelope-from rodrigc) Message-Id: <200612161550.kBGFoaV1003789@repoman.freebsd.org> From: Craig Rodrigues Date: Sat, 16 Dec 2006 15:50:36 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/kern vfs_export.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Dec 2006 15:50:39 -0000 rodrigc 2006-12-16 15:50:36 UTC FreeBSD src repository Modified files: sys/kern vfs_export.c Log: In vfs_export(), if we specify MNT_DELEXPORT in the struct export_args, after we perform the operations to delete the export, call vfs_deleteopt() to delete the "export" mount option from the linked list of mount options associated with that mount point. This fixes one scenario: - put a filesystem in /etc/exports to export it - remove the filesystem from /etc/exports to delete the export and restart mountd - try to do a "mount -u -o ro" or "mount -u -o rw" on that filesystem now that it is no longer exported. Revision Changes Path 1.339 +4 -1 src/sys/kern/vfs_export.c