From owner-cvs-all@FreeBSD.ORG Mon Sep 8 09:23:23 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0F86916A4BF; Mon, 8 Sep 2003 09:23:23 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 682FE43F3F; Mon, 8 Sep 2003 09:23:22 -0700 (PDT) (envelope-from iedowse@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h88GNM0U080348; Mon, 8 Sep 2003 09:23:22 -0700 (PDT) (envelope-from iedowse@repoman.freebsd.org) Received: (from iedowse@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h88GNMcj080347; Mon, 8 Sep 2003 09:23:22 -0700 (PDT) Message-Id: <200309081623.h88GNMcj080347@repoman.freebsd.org> From: Ian Dowse Date: Mon, 8 Sep 2003 09:23:22 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/lib/libc/sys mount.2 src/sys/kern vfs_mount.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Sep 2003 16:23:23 -0000 iedowse 2003/09/08 09:23:22 PDT FreeBSD src repository Modified files: lib/libc/sys mount.2 sys/kern vfs_mount.c Log: In the !MNT_BYFSID case, return EINVAL from unmount(2) when the specified directory is not found in the mount list. Before the MNT_BYFSID changes, unmount(2) used to return ENOENT for a nonexistent path and EINVAL for a non-mountpoint, but we can no longer distinguish between these cases. Of the two error codes, EINVAL was more likely to occur in practice, and it was the only one of the two that was documented. Update the manual page to match the current behaviour. Suggested by: tjr Reviewed by: tjr Revision Changes Path 1.37 +12 -7 src/lib/libc/sys/mount.2 1.110 +9 -2 src/sys/kern/vfs_mount.c