vflush.9 (2164257702740979d6ffebaba02a3fd778aea2c3) | vflush.9 (1f620c2ead117e9b4f698560053721d05a6637a3) |
---|---|
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 --- 20 unchanged lines hidden (view full) --- 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 | 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 --- 20 unchanged lines hidden (view full) --- 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 . |