From: Brian Behlendorf Date: Thu, 3 Mar 2011 19:29:15 +0000 (-0800) Subject: Use Linux ATTR_ versions X-Git-Tag: zfs-0.6.0-rc2~11 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6742abf9ec5a2c0ca132951efa0dee85698ff9b8;p=zfs 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. --- diff --git a/module/zfs/zfs_replay.c b/module/zfs/zfs_replay.c index a5018ee60..782d5582b 100644 --- a/module/zfs/zfs_replay.c +++ b/module/zfs/zfs_replay.c @@ -303,7 +303,7 @@ zfs_replay_create_acl(zfs_sb_t *zsb, lr_acl_create_t *lracl, boolean_t byteswap) return (error); 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); /* @@ -430,7 +430,7 @@ zfs_replay_create(zfs_sb_t *zsb, lr_create_t *lr, boolean_t byteswap) return (error); 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); /*