Function

vfs_isrdonly

Determine if a filesystem is mounted read-only.

Declaration

int vfs_isrdonly(mount_t mp);

Parameters

mp

Mount to test.

Return Value

Nonzero if filesystem is mounted read-only, else 0.

See Also

Miscellaneous

vfs_64bitready

Check if the filesystem associated with a mountpoint is marked ready for interaction with 64-bit user processes.

vfs_authcache_ttl

Determine the time-to-live of cached authorized credentials for files in this filesystem.

vfs_authopaque

Determine if a filesystem's authorization decisions occur remotely.

vfs_authopaqueaccess

Check if a filesystem is marked as having reliable remote VNOP_ACCESS support.

vfs_busy

"Busy" a mountpoint.

vfs_clearauthcache_ttl

Remove time-to-live controls for cached credentials on a filesytem. Filesystems with remote authorization decisions (opaque) will still have KAUTH_VNODE_SEARCH rights cached for a default of CACHED_LOOKUP_RIGHT_TTL seconds.

vfs_clearauthopaque(mount_t)

Mark a filesystem as not having remote VNOP_ACCESS support.

vfs_clearauthopaqueaccess

Mark a filesystem as not having remote VNOP_ACCESS support.

vfs_clearextendedsecurity

Mark a filesystem as NOT supporting security controls beyond POSIX permissions.

vfs_clearflags

Clear flags on a mount.

vfs_devblocksize

Get the block size of the device underlying a mount.

vfs_event_init

This function should not be called by kexts.

vfs_event_signal

Post a kqueue-style event on a filesystem (EVFILT_FS).

vfs_fhtovp

Get the vnode corresponding to a file handle.

vfs_flags

Retrieve mount flags.

vfs_fsadd

Register a filesystem with VFS.

vfs_fsprivate

Get filesystem-private mount data.

vfs_fsremove

Unregister a filesystem with VFS.

vfs_getattr

Get filesystem attributes.

vfs_getnewfsid

Generate a unique filesystem ID for a mount and store it in the mount structure.

vfs_getvfs

Given a filesystem ID, look up a mount structure.

vfs_init

Prepare a filesystem for having instances mounted.

vfs_init_io_attributes

Set I/O attributes on a mountpoint based on device properties.

vfs_ioattr

Get I/O attributes associated with a mounpoint.

vfs_isforce

Determine if a forced unmount is in progress.

vfs_isrdwr

Determine if a filesystem is mounted with writes enabled.

vfs_isreload

Determine if a reload of filesystem data is in progress. This can only be the case for a read-only filesystem; all data is brought in from secondary storage.

vfs_issynchronous

Determine if writes to a filesystem occur synchronously.

vfs_isunmount

Determine if an unmount is in progress.

vfs_isupdate

Determine if a mount update is in progress.

vfs_iswriteupgrade

Determine if a filesystem is mounted read-only but a request has been made to upgrade to read-write.

vfs_iterate

Iterate over all mountpoints with a callback. Used, for example, by sync().

vfs_maxsymlen

Get the maximum length of a symbolic link on a filesystem.

vfs_mount

Perform filesystem-specific operations required for mounting.

vfs_mountedon

Check whether a given block device has a filesystem mounted on it.

vfs_name

Copy filesystem name into a buffer.

vfs_quotactl

Manipulate quotas for a volume.

vfs_root

Get the root vnode of a filesystem.

vfs_setattr

Set filesystem attributes.

vfs_setauthcache_ttl

Enable credential caching and set time-to-live of cached authorized credentials for files in this filesystem.

vfs_setauthopaque

Mark a filesystem as having authorization decisions controlled remotely.

vfs_setauthopaqueaccess

Mark a filesystem as having remote VNOP_ACCESS support.

vfs_setextendedsecurity

Mark a filesystem as supporting security controls beyond POSIX permissions.

vfs_setflags

Set flags on a mount.

vfs_setfsprivate

Set filesystem-private mount data.

vfs_setioattr

Set I/O attributes associated with a mounpoint.

vfs_setlocklocal

Mark a filesystem as using VFS-level advisory locking support.

vfs_setmaxsymlen

Set the maximum length of a symbolic link on a filesystem.

vfs_start

Mark a mount as ready to be used.

vfs_statfs

Get information about filesystem status.

vfs_sync

Flush all filesystem data to backing store.

vfs_sysctl

Broad interface for querying and controlling filesystem.

vfs_typenum

Get (archaic) filesystem type number.

vfs_unbusy

"Unbusy" a mountpoint by releasing its read-write lock.

vfs_unmount

Perform filesystem-specific cleanup as part of unmount.

vfs_unmountbyfsid

Find a filesystem by ID and unmount it.

vfs_update_vfsstat

Update cached filesystem status information in the VFS mount structure.

vfs_vget

Get a vnode by file id (inode number).

vfs_vptofh

Get a persistent handle corresponding to a vnode.