int argc;
char *argv[];
{
- int sflag = 0;
-
- while (argc > 1 && argv[1][0] == '-') {
- char *opt = argv[1]+1;
- while (*opt) if (*opt++ == 's') sflag = 1; else usage();
- argc--;
- argv++;
- }
if (argc != 2) usage();
- if ((sflag ? svrctl(MMSWAPOFF, NULL) : umount(argv[1])) < 0) {
+ if (umount(argv[1]) < 0) {
if (errno == EINVAL)
std_err("Device not mounted\n");
else
void usage()
{
- std_err("Usage: umount [-s] special\n");
+ std_err("Usage: umount special\n");
exit(1);
}
.SH NAME
umount \- unmount a mounted file system
.SH SYNOPSIS
-\fBumount \fR[\fB\-s\fR] \fIspecial\fR
+\fBumount \fIspecial\fR
.br
.de FL
.TP
\\fB\\$1\\fR
# \\$2
..
-.SH OPTIONS
-.FL "\-s" "Unmount swapspace instead of a file system"
.SH EXAMPLES
.EX "umount /dev/fd1" "Unmount diskette 1"
.SH DESCRIPTION
original one can be replaced without harm.
Attempts to unmount a file system holding working directories or open files
will be rejected with a \&'device busy\&' message.
-.PP
-With the
-.B \-s
-flag one can unmount swap space.
.SH "SEE ALSO"
.BR mount (1),
.BR umount (2).