diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2003-06-10 17:51:03 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2003-06-10 17:51:03 +0000 |
commit | 85fbc5df588599a55397d184c2196a80d921baba (patch) | |
tree | a4a13dc9b14c87fcde2c883fbce9291b01a85240 /lib/libc/sys | |
parent | 32db52eeb07fc0762873048cd4d39e3d4f159ea4 (diff) |
o make mount(2) return EROFS, not EPERM if ffs is dirty
o document EROFS in man page (2 possible causes)
o recognize EROFS in mount_ffs and try to give a reasonable error message
deraadt@ OK
Diffstat (limited to 'lib/libc/sys')
-rw-r--r-- | lib/libc/sys/mount.2 | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/lib/libc/sys/mount.2 b/lib/libc/sys/mount.2 index d827c3214c2..555f4c573f7 100644 --- a/lib/libc/sys/mount.2 +++ b/lib/libc/sys/mount.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: mount.2,v 1.27 2003/06/09 17:17:27 millert Exp $ +.\" $OpenBSD: mount.2,v 1.28 2003/06/10 17:51:02 millert Exp $ .\" $NetBSD: mount.2,v 1.12 1996/02/29 23:47:48 jtc Exp $ .\" .\" Copyright (c) 1980, 1989, 1993 @@ -250,10 +250,6 @@ will fail when one of the following occurs: .Bl -tag -width [ENAMETOOLONG] .It Bq Er EPERM The caller is not the superuser. -.It Bq Er EPERM -The filesystem was not unmounted cleanly and -.Dv MNT_FORCE -was not specified. .It Bq Er ENAMETOOLONG A component of a pathname exceeded .Dv {NAME_MAX} @@ -319,6 +315,16 @@ cylinder group information. .It Bq Er EFAULT .Fa fspec points outside the process's allocated address space. +.It Bq Er EROFS +The filesystem was not unmounted cleanly and +.Dv MNT_FORCE +was not specified. +.It Bq Er EROFS +An attempt was made to mount a +.Bx 4.2 +filesystem without the +.Ev MNT_RDONLY +flag. .El .Pp The following errors can occur for an |