]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: Add attibute set and helper functions
authorAllison Henderson <allison.henderson@oracle.com>
Thu, 15 Nov 2018 19:22:53 +0000 (13:22 -0600)
committerEric Sandeen <sandeen@redhat.com>
Thu, 15 Nov 2018 19:22:53 +0000 (13:22 -0600)
commit932b563efffed83d27ee687890582596d85747ee
treec5681c157a7eb0c0507f5d288febe1ad06a3461c
parent6db48a681035d2202c68735128529211835012a0
xfs: Add attibute set and helper functions

Source kernel commit: 2f3cd8091963810d85e6a5dd6ed1247e10e9e6f2

This patch adds xfs_attr_set_args and xfs_bmap_set_attrforkoff.
These sub-routines set the attributes specified in @args.
We will use this later for setting parent pointers as a deferred
attribute operation.

[dgc: remove attr fork init code from xfs_attr_set_args().]
[dgc: xfs_attr_try_sf_addname() NULLs args.trans after commit.]
[dgc: correct sf add error handling.]

Signed-off-by: Allison Henderson <allison.henderson@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/xfs_attr.c
libxfs/xfs_attr.h
libxfs/xfs_bmap.c
libxfs/xfs_bmap.h