All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] fstests: dirent file type tests
@ 2016-12-20 13:17 Amir Goldstein
  2016-12-20 13:17 ` [PATCH v2 1/3] common/rc: factor out _supports_filetype() helper Amir Goldstein
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Amir Goldstein @ 2016-12-20 13:17 UTC (permalink / raw)
  To: Eryu Guan
  Cc: Dave Chinner, Christoph Hellwig, Darrick J . Wong,
	Miklos Szeredi, fstests

generic/396 runs some tests on directory file types.

_supports_filetype() helper is used by this test
and by overlayfs to check for file type support of upper
dir fs.

Tested with tmpfs, ext2, ext4, xfs for d_type supported fs
and with xfs -m crc=0 -n ftype=0 for d_type unsupported fs

Tested that overlay tests run over tmpfs (generic ftype check)
Tested that overlay tests run over xfs (ftype=1)
Tested that overlay tests do not run over xfs (ftype=0)

v2:
- use helper to test for file type support
- allow DT_UNKNOWN type, but only for all files
- verify . and .. have DT_DIR type

v1:
- verify that d_type matches actual file type

Amir Goldstein (3):
  common/rc: factor out _supports_filetype() helper
  common/rc: add generic file type support check
  generic/396: test correct d_type values

 .gitignore            |   1 +
 common/rc             |  42 +++++++++++++-------
 src/Makefile          |   2 +-
 src/t_dir_type.c      | 108 ++++++++++++++++++++++++++++++++++++++++++++++++++
 tests/generic/396     |  87 ++++++++++++++++++++++++++++++++++++++++
 tests/generic/396.out |   9 +++++
 tests/generic/group   |   1 +
 7 files changed, 235 insertions(+), 15 deletions(-)
 create mode 100644 src/t_dir_type.c
 create mode 100755 tests/generic/396
 create mode 100644 tests/generic/396.out

-- 
2.7.4

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-12-24 12:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-20 13:17 [PATCH v2 0/3] fstests: dirent file type tests Amir Goldstein
2016-12-20 13:17 ` [PATCH v2 1/3] common/rc: factor out _supports_filetype() helper Amir Goldstein
2016-12-20 13:17 ` [PATCH v2 2/3] common/rc: add generic file type support check Amir Goldstein
2016-12-20 13:17 ` [PATCH v2 3/3] generic/396: test correct d_type values Amir Goldstein
2016-12-21 13:50   ` [PATCH v3 " Amir Goldstein
2016-12-24 12:20     ` Eryu Guan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.