Use Linux ATTR_ versions

The AT_ versions of these macros are used on Solaris and while they
map to their Linux equivilants the code has been updated to use the
ATTR_ versions.
This commit is contained in:
Brian Behlendorf 2011-03-03 11:29:15 -08:00
parent f4ea75d492
commit 6742abf9ec

View File

@ -303,7 +303,7 @@ zfs_replay_create_acl(zfs_sb_t *zsb, lr_acl_create_t *lracl, boolean_t byteswap)
return (error); return (error);
xva_init(&xva); xva_init(&xva);
zfs_init_vattr(&xva.xva_vattr, AT_MODE | AT_UID | AT_GID, zfs_init_vattr(&xva.xva_vattr, ATTR_MODE | ATTR_UID | ATTR_GID,
lr->lr_mode, lr->lr_uid, lr->lr_gid, lr->lr_rdev, lr->lr_foid); lr->lr_mode, lr->lr_uid, lr->lr_gid, lr->lr_rdev, lr->lr_foid);
/* /*
@ -430,7 +430,7 @@ zfs_replay_create(zfs_sb_t *zsb, lr_create_t *lr, boolean_t byteswap)
return (error); return (error);
xva_init(&xva); xva_init(&xva);
zfs_init_vattr(&xva.xva_vattr, AT_MODE | AT_UID | AT_GID, zfs_init_vattr(&xva.xva_vattr, ATTR_MODE | ATTR_UID | ATTR_GID,
lr->lr_mode, lr->lr_uid, lr->lr_gid, lr->lr_rdev, lr->lr_foid); lr->lr_mode, lr->lr_uid, lr->lr_gid, lr->lr_rdev, lr->lr_foid);
/* /*