Function

vnode_vfsisrdonly

Determine if the filesystem to which a vnode belongs is mounted read-only.

Declaration

int vnode_vfsisrdonly(vnode_t vp);

Parameters

vp

The vnode for which to get filesystem writeability.

Return Value

Nonzero if the filesystem is read-only, 0 otherwise.