Re: [PATCH v3 3/7] fsstress: add operation for setting xattrs on files and directories

2019-04-19 Thread Eryu Guan
On Thu, Apr 04, 2019 at 05:30:18PM +0100, fdman...@kernel.org wrote: > From: Filipe Manana > > Currently fsstress does not exercise creating, reading or deleting xattrs > on files or directories. This change adds support for setting xattrs on > files and directories, using only the xattr user nam

[PATCH v4 4/7] fsstress: add operation for reading xattrs from files and directories

2019-04-19 Thread fdmanana
From: Filipe Manana The previous patch added support for an operation to set xattrs on regular files and directories, this patch just adds one operation to read (get) them. Signed-off-by: Filipe Manana --- V2: Use a different name for the operation (getfattr) and make use of the helper fun

[PATCH v4 3/7] fsstress: add operation for setting xattrs on files and directories

2019-04-19 Thread fdmanana
From: Filipe Manana Currently fsstress does not exercise creating, reading or deleting xattrs on files or directories. This change adds support for setting xattrs on files and directories, using only the xattr user namespace (the other namespaces are not general purpose and are used for security,

[PATCH v4 7/7] fssum: add support for checking xattrs

2019-04-19 Thread fdmanana
From: Filipe Manana Currently fssum, mostly used for btrfs test cases that test the btrfs send feature, ignores completely the existence of xattrs. This change teaches fssum to find xattrs and make them contribute to the checksum of a filesystem, so that we can catch filesystem bugs regarding mis

[PATCH v4 5/7] fsstress: add operation for deleting xattrs from files and directories

2019-04-19 Thread fdmanana
From: Filipe Manana The previous patches added support for operations to set and get xattrs on regular files and directories, this patch just adds one operation to delete xattrs on files and directories. Signed-off-by: Filipe Manana --- V2: Use a different name for the operation (delfattr) and

[PATCH v4 6/7] fsstress: add operation for listing xattrs from files and directories

2019-04-19 Thread fdmanana
From: Filipe Manana The previous patches added support for operations to set, get and delete xattrs on regular files and directories, this patch just adds an operation to list the xattrs of a file/directory. Signed-off-by: Filipe Manana --- V2: New patch in the series, the first version of the

[PATCH v4 1/7] fsstress: allow fsync on directories too

2019-04-19 Thread fdmanana
From: Filipe Manana Currently the fsync function can only be performed against regular files. Allow it to operate on directories too, to increase test coverage and allow for chances of finding bugs in a filesystem's implementation of fsync against directories. Signed-off-by: Filipe Manana ---

[PATCH v4 2/7] fsstress: allow afsync on directories too

2019-04-19 Thread fdmanana
From: Filipe Manana Currently the afsync function can only be performed against regular files. Allow it to operate on directories too, to increase test coverage and allow for chances of finding bugs in a filesystem's implementation of fsync against directories. Signed-off-by: Filipe Manana ---