Files
apfstests/tests/generic
Eric Biggers 856f357c6a generic/399: don't rely on xfs_io exit status
Unexpectedly, 'xfs_io -f $file -c "pwrite 0 1M"' exits with failure
status if the file can't be created, but exits with success status if an
error occurs actually writing data.  As discussed previously, xfs_io's
exit status has always been broken, and it will be difficult to fix:
https://marc.info/?l=linux-xfs&m=151269053129101&w=2

Because of this, generic/399 fails on ext4 if "-I 256" (256-byte inodes)
is specified in the mkfs options, e.g. with 'kvm-xfstests -c ext4/adv
generic/399'.  This is because the test tries to fill a filesystem
entirely with 1 MiB encrypted files, and it expects the xfs_io commands
to start failing when no more files should be able to fit.  But when the
filesystem supports in-inode xattrs, no blocks need to be allocated for
the encryption xattrs, so empty encrypted files can continue to be
created even after all the filesystem's blocks are in-use.

For better or worse, the convention for xfstests is to ignore the exit
status of xfs_io and instead rely on the printed error messages.  Thus,
other tests don't run into this problem.  So for now, let's fix the test
failure by making generic/399 do the same.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
2019-07-12 13:33:50 +08:00
..
2018-09-30 13:57:50 +08:00
2015-12-21 18:01:47 +11:00
2014-04-14 10:35:27 +10:00
2014-04-14 11:19:23 +10:00
2014-04-14 10:37:32 +10:00
2019-03-24 10:37:43 +08:00
2014-04-28 10:55:12 +10:00
2014-05-27 12:07:17 +10:00
2014-06-18 09:31:38 +10:00
2014-09-29 12:58:24 +10:00
2019-03-23 21:27:12 +08:00
2014-09-29 13:26:32 +10:00
2014-10-14 17:40:34 +11:00
2015-01-21 15:58:23 +11:00
2019-03-23 21:27:12 +08:00
2015-03-18 14:58:51 +11:00
2015-04-02 09:41:15 +11:00
2017-07-24 12:34:52 +08:00
2017-07-24 12:13:35 +08:00
2017-07-24 12:23:39 +08:00
2019-03-24 10:37:43 +08:00
2018-09-30 13:57:50 +08:00
2018-09-30 13:57:50 +08:00
2015-08-04 14:10:49 +10:00
2018-09-30 13:57:50 +08:00
2015-09-21 13:06:18 +10:00
2019-03-23 16:29:16 +08:00
2018-09-30 13:57:50 +08:00
2018-09-30 13:57:50 +08:00
2018-09-30 13:57:50 +08:00
2015-12-21 18:13:37 +11:00
2015-12-21 18:13:37 +11:00
2015-12-21 18:13:37 +11:00
2015-12-21 18:13:37 +11:00
2018-09-30 13:57:50 +08:00
2018-09-30 13:57:50 +08:00
2018-09-30 13:57:50 +08:00
2016-02-08 09:27:14 +11:00
2014-12-16 10:53:57 +11:00
2018-08-19 20:13:11 +08:00
2016-02-12 09:39:05 -08:00
2016-06-28 11:30:49 +08:00
2019-03-02 17:18:54 +08:00
2014-01-20 12:47:56 +11:00
2014-08-13 11:19:33 +10:00
2018-08-19 20:13:11 +08:00
2016-02-12 09:39:05 -08:00
2018-08-19 20:13:11 +08:00
2016-02-12 09:39:05 -08:00
2016-02-12 09:39:05 -08:00
2016-02-12 09:39:05 -08:00
2016-03-23 17:39:11 +11:00
2016-03-23 17:39:11 +11:00
2016-05-09 10:55:24 +10:00
2016-05-09 16:03:29 +10:00
2016-05-09 16:03:29 +10:00
2016-05-09 16:03:29 +10:00
2016-06-15 15:44:49 +08:00
2016-06-15 15:44:49 +08:00
2016-06-15 16:35:20 +08:00
2016-07-01 11:17:08 +08:00
2016-07-01 11:17:08 +08:00
2016-07-01 11:17:08 +08:00
2016-07-01 11:17:08 +08:00
2016-07-01 11:17:08 +08:00
2016-07-01 11:17:08 +08:00
2016-07-01 11:17:08 +08:00
2016-07-01 11:17:08 +08:00
2016-07-01 11:17:08 +08:00
2016-08-26 15:45:00 +08:00
2018-06-13 09:48:53 +08:00
2016-12-24 16:47:12 +08:00
2016-12-24 20:21:55 +08:00
2017-02-15 17:55:41 +08:00
2017-02-15 17:55:57 +08:00
2017-03-02 12:26:17 +08:00
2017-04-11 12:34:24 +08:00
2017-05-12 21:13:19 +08:00
2019-06-08 00:43:30 +08:00
2017-05-17 20:21:59 +08:00
2017-08-15 14:37:59 +08:00
2019-05-26 14:24:48 +08:00
2019-05-26 14:24:48 +08:00
2017-09-09 18:15:53 +08:00
2017-09-09 18:15:53 +08:00
2017-09-09 18:15:53 +08:00
2017-09-09 18:15:53 +08:00
2018-09-30 13:57:50 +08:00
2017-09-30 00:53:30 +08:00
2017-12-14 12:39:57 +08:00
2017-12-24 21:30:58 +08:00
2018-02-16 01:28:32 +08:00
2019-03-02 17:18:54 +08:00
2019-06-28 11:13:21 +08:00
2018-05-21 16:12:39 +08:00
2018-11-05 00:42:49 +08:00
2018-07-12 13:12:23 +08:00
2019-04-14 19:05:36 +08:00
2019-03-24 10:37:43 +08:00
2018-10-14 23:05:26 +08:00
2018-10-14 23:05:26 +08:00
2018-10-21 17:40:31 +08:00
2018-10-21 17:40:31 +08:00
2018-10-21 17:40:31 +08:00
2018-10-21 17:40:31 +08:00
2018-10-21 17:40:31 +08:00
2018-10-21 17:40:31 +08:00
2018-10-21 17:40:31 +08:00
2018-11-11 22:19:14 +08:00
2018-12-09 22:56:51 +08:00
2018-12-09 22:56:51 +08:00
2018-12-09 22:56:51 +08:00
2018-12-09 22:56:51 +08:00
2019-06-19 13:35:31 +08:00
2019-04-06 19:14:59 +08:00
2019-04-14 19:21:52 +08:00
2019-04-14 19:21:52 +08:00
2019-04-14 19:21:52 +08:00
2019-04-14 19:21:52 +08:00
2019-04-14 19:21:52 +08:00
2019-04-14 19:21:52 +08:00
2019-05-19 21:54:23 +08:00
2019-07-11 15:16:47 +08:00
2019-07-11 15:16:47 +08:00