cvs commit: src/lib/libc/sys mount.2 src/sys/kern vfs_mount.c
Ian Dowse
iedowse at FreeBSD.org
Mon Sep 8 09:23:23 PDT 2003
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
More information about the cvs-src
mailing list