Deleted Added
full compact
vflush.9 (87182) vflush.9 (87857)
1.\"
2.\" Copyright (C) 2001 Chad David <davidc@acns.ab.ca>. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice(s), this list of conditions and the following disclaimer as

--- 10 unchanged lines hidden (view full) ---

19.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
20.\" (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
21.\" SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
22.\" CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
25.\" DAMAGE.
26.\"
1.\"
2.\" Copyright (C) 2001 Chad David <davidc@acns.ab.ca>. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice(s), this list of conditions and the following disclaimer as

--- 10 unchanged lines hidden (view full) ---

19.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
20.\" (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
21.\" SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
22.\" CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
25.\" DAMAGE.
26.\"
27.\" $FreeBSD: head/share/man/man9/vflush.9 87182 2001-12-02 02:13:35Z alfred $
27.\" $FreeBSD: head/share/man/man9/vflush.9 87857 2001-12-14 09:11:13Z ru $
28.\"
29.Dd November 21, 2001
30.Dt VFLUSH 9
31.Os
32.Sh NAME
33.Nm vflush
34.Nd "flush vnodes for a mount point"
35.Sh SYNOPSIS
36.In sys/param.h
28.\"
29.Dd November 21, 2001
30.Dt VFLUSH 9
31.Os
32.Sh NAME
33.Nm vflush
34.Nd "flush vnodes for a mount point"
35.Sh SYNOPSIS
36.In sys/param.h
37.In sys/mount.h
37.In sys/vnode.h
38.Ft int
39.Fn vflush "struct mount *mp" "int rootrefs" "int flags"
40.Sh DESCRIPTION
41The
42.Fn vflush
38.Ft int
39.Fn vflush "struct mount *mp" "int rootrefs" "int flags"
40.Sh DESCRIPTION
41The
42.Fn vflush
43function removes any vnodes in the vnode table that belong to the given mount
43function removes any vnodes in the vnode table that belong to the given
44.Vt mount
44structure.
45.Pp
46Its arguments are:
47.Bl -tag -width ".Fa rootrefs"
48.It Fa mp
49The mount point whose vnodes should be removed.
50.It Fa rootrefs
51The number of references expected on the root vnode.
45structure.
46.Pp
47Its arguments are:
48.Bl -tag -width ".Fa rootrefs"
49.It Fa mp
50The mount point whose vnodes should be removed.
51.It Fa rootrefs
52The number of references expected on the root vnode.
52.Fn vrele
53.Xr vrele 9
53will be invoked on the root vnode
54.Fa rootrefs
55times.
56.It Fa flags
57The flags indicating how vnodes should be handled.
58.Bl -tag -width ".Dv WRITECLOSE"
59.It Dv FORCECLOSE
54will be invoked on the root vnode
55.Fa rootrefs
56times.
57.It Fa flags
58The flags indicating how vnodes should be handled.
59.Bl -tag -width ".Dv WRITECLOSE"
60.It Dv FORCECLOSE
60If set busy vnodes will be forcibly closed.
61If set, busy vnodes will be forcibly closed.
61.It Dv SKIPSYSTEM
62.It Dv SKIPSYSTEM
62If set vnodes with the VSYSTEM flag set will be skipped.
63If set, vnodes with the
64.Dv VSYSTEM
65flag set will be skipped.
63.It Dv WRITECLOSE
66.It Dv WRITECLOSE
64If set only regular files currently opened for writing will be removed.
67If set, only regular files currently opened for writing will be removed.
65.El
66.El
67.Sh RETURN VALUES
68A value of 0 is returned if the flush is successful; otherwise,
68.El
69.El
70.Sh RETURN VALUES
71A value of 0 is returned if the flush is successful; otherwise,
69.Dv EBUSY
72.Er EBUSY
70will be returned.
71.Sh SEE ALSO
72.Xr vgone 9 ,
73will be returned.
74.Sh SEE ALSO
75.Xr vgone 9 ,
73.Xr vgonel 9
76.Xr vgonel 9 ,
77.Xr vrele 9
74.Sh AUTHORS
75This man page was written by
76.An Chad David Aq davidc@acns.ab.ca .
78.Sh AUTHORS
79This man page was written by
80.An Chad David Aq davidc@acns.ab.ca .