Signed-off-by: Darrick J. Wong <darrick.wong@xxxxxxxxxx> --- common/populate | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/common/populate b/common/populate index 91a7753..9cd9362 100644 --- a/common/populate +++ b/common/populate @@ -166,6 +166,9 @@ _scratch_xfs_populate() { mknod "${SCRATCH_MNT}/S_IFCHR" c 1 1 mknod "${SCRATCH_MNT}/S_IFBLK" c 1 1 + # special file with an xattr + setfacl -P -m u:nobody:r ${SCRATCH_MNT}/S_IFCHR + # Attribute formats # LOCAL echo "+ local attr" @@ -183,6 +186,18 @@ _scratch_xfs_populate() { echo "+ btree attr" __populate_create_attr "${SCRATCH_MNT}/ATTR.FMT_BTREE" "$((64 * blksz / 40))" true + # trusted namespace + touch ${SCRATCH_MNT}/ATTR.TRUSTED + setfattr -n trusted.moo -v urk ${SCRATCH_MNT}/ATTR.TRUSTED + + # security namespace + touch ${SCRATCH_MNT}/ATTR.SECURITY + setfattr -n security.foo -v bar ${SCRATCH_MNT}/ATTR.SECURITY + + # system namespace + touch ${SCRATCH_MNT}/ATTR.SYSTEM + setfacl -m u:root:r ${SCRATCH_MNT}/ATTR.SYSTEM + # FMT_EXTENTS with a remote less-than-a-block value echo "+ attr extents with a remote less-than-a-block value" touch "${SCRATCH_MNT}/ATTR.FMT_EXTENTS_REMOTE3K" @@ -305,6 +320,9 @@ _scratch_ext4_populate() { mknod "${SCRATCH_MNT}/S_IFCHR" c 1 1 mknod "${SCRATCH_MNT}/S_IFBLK" c 1 1 + # special file with an xattr + setfacl -P -m u:nobody:r ${SCRATCH_MNT}/S_IFCHR + # Attribute formats # LOCAL echo "+ local attr" @@ -314,6 +332,18 @@ _scratch_ext4_populate() { echo "+ block attr" __populate_create_attr "${SCRATCH_MNT}/ATTR.FMT_BLOCK" "$((blksz / 40))" + # trusted namespace + touch ${SCRATCH_MNT}/ATTR.TRUSTED + setfattr -n trusted.moo -v urk ${SCRATCH_MNT}/ATTR.TRUSTED + + # security namespace + touch ${SCRATCH_MNT}/ATTR.SECURITY + setfattr -n security.foo -v bar ${SCRATCH_MNT}/ATTR.SECURITY + + # system namespace + touch ${SCRATCH_MNT}/ATTR.SYSTEM + setfacl -m u:root:r ${SCRATCH_MNT}/ATTR.SYSTEM + # Make an unused inode echo "+ empty file" touch "${SCRATCH_MNT}/unused" -- To unsubscribe from this list: send the line "unsubscribe linux-xfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html