sortix-mirror/utils/unmount.8

37 lines
911 B
Groff
Raw Permalink Normal View History

2016-10-11 07:38:50 +00:00
.Dd October 11, 2016
.Dt UNMOUNT 8
.Os
.Sh NAME
.Nm unmount
.Nd unmount filesystems
.Sh SYNOPSIS
.Nm
.Op Fl fl
.Ar directory ...
.Sh DESCRIPTION
.Nm
unmounts the specified paths.
The mountpoint is removed so that it cannot be opened further, and
2016-10-11 07:38:50 +00:00
.Nm
waits until no files on the filesystem are open, after which the filesystem is
shut off cleanly.
.Pp
The options are as follows:
.Bl -tag -width "12345678"
.It Fl f , Fl \-force
2016-10-11 07:38:50 +00:00
Shut off the filesystem immediately, further operations to any open files will
fail.
The filesystem will be consistent, but processes may be stopped in the middle of
file operations.
.It Fl l , Fl \-lazy
Do not wait for the filesystem to be unused, and shut off the filesystem in the
background.
It is not safe to shut down the computer directly after using this option.
2016-10-11 07:38:50 +00:00
.El
.Sh EXIT STATUS
.Nm
will exit 0 on success and non-zero otherwise.
.Sh SEE ALSO
.Xr unmount 2 ,
.Xr extfs 8