mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 18:40:43 +03:00
Move platform specific parts of zfs_znode.h to platform code
Some of the znode fields are different and functions consuming an inode don't exist on FreeBSD. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Jorgen Lundman <lundman@lundman.net> Signed-off-by: Matt Macy <mmacy@FreeBSD.org> Closes #9536
This commit is contained in:
committed by
Brian Behlendorf
parent
1c47c2c42c
commit
27ece2ee4d
@@ -2159,8 +2159,8 @@ static int
|
||||
zfs_zaccess_dataset_check(znode_t *zp, uint32_t v4_mode)
|
||||
{
|
||||
if ((v4_mode & WRITE_MASK) && (zfs_is_readonly(ZTOZSB(zp))) &&
|
||||
(!S_ISDEV(ZTOI(zp)->i_mode) ||
|
||||
(S_ISDEV(ZTOI(zp)->i_mode) && (v4_mode & WRITE_MASK_ATTRS)))) {
|
||||
(!Z_ISDEV(ZTOI(zp)->i_mode) ||
|
||||
(Z_ISDEV(ZTOI(zp)->i_mode) && (v4_mode & WRITE_MASK_ATTRS)))) {
|
||||
return (SET_ERROR(EROFS));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user