On Thu, Jun 20, 2019 at 07:29:03PM +0800, Eryu Guan wrote: > > IMO, shared tests are generic tests that don't have proper _require > rules, so they're hard-coded with explicit "_supported_fs xxx yyy". With > proper _require rules, there should be no shared tests at all, and we'd > try avoid adding new shared tests if possible. Thanks for the clarification, that makes sense! I can see some shared tests that we can probably move out, actually. shared/00[134] and shared/272 make no sense at all for ext2. The ext3 file system was removed in 2015, in the 4.3 kernel, and since 2009 (ten years ago) in 2.6.33, the ext4 implementation could be used to support ext3 (and I believe many if not all enterprise distros been taking advantage of this long before 2015, so they only had to update patches for ext4). (If anything, we might be better served by a two line patch to check so that simply included the ext4 group when FSTYP == ext3. That way we will run more tests on those systems which still support the ext3 emulated-by-ext4 mode.) The shared/002 test could be moved to generic if we had a way for file systems to declare how many xattrs per file they support. The shared/006 test needs some way of descriminating which inodes have a fixed number of inodes, since it fills a small file system until it runs out of space and then runs fsck on it. Actually, if we make the test file system smaller, so it runs in finite time, we could probably just run it on all file systems, since checking to see what file systems which don't have a fixed inode table (e.g., btrfs) do under ENOSPC when creating tons of inodes probably makes sense there for those file systems as well. I'm not sure why shared/011 is only run on ext4 and btrfs. Does cgroup-aware writeback not work on other file systems? The shared/{008,009,010} tests could be moved to generic if we added _require_dedup. The shared/298 tests just needs a _require_fstrim. The bottom line is I think if this is something we care about, we can probably move out nearly all of the tests from shared. Should I start sending patches? :-) - Ted