chfs_chflags
int chfs_chflags(struct vnode *, int, kauth_cred_t);
error = chfs_chflags(vp, vap->va_flags, cred);