I am looking into the XFS kernel code, and in the function STATIC int linvfs_unlink( struct inode *dir, struct dentry *dentry) in fs/xfs/linux/xfs_iops.c, I want to be able to get the ACL for that f
Hi Eric, xfs_acl_vget is used for getting the posix acl EA and not for the XFS acl. The func is static to xfs_acl.c . How about using: _ACL_GET_ACCESS(pv,pa) for the XFS access ACL (which ends up cal
what is the argument 'pa' that is passed into the function _ACL_GET_ACCESS? so I can have xfs_acl_t *acl = _ACL_GET_ACCESS(pv, pa); where vnode_t *pv = LINVFS_GET_VP(dir); is that right? ~Eric
nevermind, I think I figured out the syntax. You call _ACL_GET_ACCESS with pv and pa, where pv is the pointer to the vnode_t and pa is the pointer to the xfs_acl_t. Is this right? so if you call _AC
I think you need to allocate and free your acl memory here, the function is putting stuff in an uninitialized pointer in the above code. Steve -- Steve Lord voice: +1-651-683-3511 Principal Engineer,
I am looking into the XFS kernel code, and in the function STATIC int linvfs_unlink( struct inode *dir, struct dentry *dentry) in fs/xfs/linux/xfs_iops.c, I want to be able to get the ACL for that f
Hi Eric, xfs_acl_vget is used for getting the posix acl EA and not for the XFS acl. The func is static to xfs_acl.c . How about using: _ACL_GET_ACCESS(pv,pa) for the XFS access ACL (which ends up cal
what is the argument 'pa' that is passed into the function _ACL_GET_ACCESS? so I can have xfs_acl_t *acl = _ACL_GET_ACCESS(pv, pa); where vnode_t *pv = LINVFS_GET_VP(dir); is that right? ~Eric
nevermind, I think I figured out the syntax. You call _ACL_GET_ACCESS with pv and pa, where pv is the pointer to the vnode_t and pa is the pointer to the xfs_acl_t. Is this right? so if you call _AC
I think you need to allocate and free your acl memory here, the function is putting stuff in an uninitialized pointer in the above code. Steve -- Steve Lord voice: +1-651-683-3511 Principal Engineer,
Hi, I am looking into the XFS kernel code, and in the function STATIC int linvfs_unlink( struct inode *dir, struct dentry *dentry) in fs/xfs/linux/xfs_iops.c, I want to be able to get the ACL for tha
Hi Eric, xfs_acl_vget is used for getting the posix acl EA and not for the XFS acl. The func is static to xfs_acl.c . How about using: _ACL_GET_ACCESS(pv,pa) for the XFS access ACL (which ends up cal
what is the argument 'pa' that is passed into the function _ACL_GET_ACCESS? so I can have xfs_acl_t *acl = _ACL_GET_ACCESS(pv, pa); where vnode_t *pv = LINVFS_GET_VP(dir); is that right? ~Eric
nevermind, I think I figured out the syntax. You call _ACL_GET_ACCESS with pv and pa, where pv is the pointer to the vnode_t and pa is the pointer to the xfs_acl_t. Is this right? so if you call _AC
I think you need to allocate and free your acl memory here, the function is putting stuff in an uninitialized pointer in the above code. Steve -- Steve Lord voice: +1-651-683-3511 Principal Engineer,