Changeset View
Changeset View
Standalone View
Standalone View
share/man/man9/VFS_QUOTACTL.9
Show All 22 Lines | |||||
.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | .\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||||
.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | .\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||||
.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | .\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||||
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | ||||
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||||
.\" | .\" | ||||
.\" $FreeBSD$ | .\" $FreeBSD$ | ||||
.\" | .\" | ||||
.Dd December 17, 2020 | .Dd May 29, 2021 | ||||
.Dt VFS_QUOTACTL 9 | .Dt VFS_QUOTACTL 9 | ||||
.Os | .Os | ||||
.Sh NAME | .Sh NAME | ||||
.Nm VFS_QUOTACTL | .Nm VFS_QUOTACTL | ||||
.Nd manipulate file system quotas | .Nd manipulate file system quotas | ||||
.Sh SYNOPSIS | .Sh SYNOPSIS | ||||
.In sys/param.h | .In sys/param.h | ||||
.In sys/mount.h | .In sys/mount.h | ||||
.In sys/vnode.h | .In sys/vnode.h | ||||
.Ft int | .Ft int | ||||
.Fn VFS_QUOTACTL "struct mount *mp" "int cmds" "uid_t uid" "void *arg" | .Fn VFS_QUOTACTL "struct mount *mp" "int cmds" "uid_t uid" "void *arg" "bool *mp_busy" | ||||
.Sh DESCRIPTION | .Sh DESCRIPTION | ||||
Implement file system quotas. | Implement file system quotas. | ||||
.Pp | |||||
The | |||||
.Fa mp_busy | |||||
argument is an input/output parameter. | |||||
.Fn VFS_QUOTACTL | |||||
must be called with | |||||
.Fa mp | |||||
marked busy through | |||||
.Xr vfs_busy 9 | |||||
and | |||||
.Fa *mp_busy | |||||
set to true. | |||||
The filesystem implementation of | |||||
.Fn VFS_QUOTACTL | |||||
may then unbusy | |||||
.Fa mp | |||||
using | |||||
.Xr vfs_unbusy 9 | |||||
prior to performing quota file I/O. | |||||
kib: New sentence should start on the new line. | |||||
In this case the implementation must set | |||||
.Fa *mp_busy | |||||
to false to indicate that the caller must not unbusy | |||||
.Fa mp | |||||
upon completion of | |||||
.Fn VFS_QUOTACTL . | |||||
.Pp | |||||
See | See | ||||
.Xr quotactl 2 | .Xr quotactl 2 | ||||
for a description of the arguments. | for a description of the remaining arguments. | ||||
.Sh SEE ALSO | .Sh SEE ALSO | ||||
.Xr quotactl 2 , | .Xr quotactl 2 , | ||||
.Xr vnode 9 | .Xr vnode 9 | ||||
.Sh AUTHORS | .Sh AUTHORS | ||||
This manual page was written by | This manual page was written by | ||||
.An Doug Rabson . | .An Doug Rabson . |
New sentence should start on the new line.