From patchwork Tue Nov 24 10:39:58 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kara X-Patchwork-Id: 7689701 Return-Path: X-Original-To: patchwork-fstests@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 0BAD9BF90C for ; Tue, 24 Nov 2015 10:44:56 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DEF8E20826 for ; Tue, 24 Nov 2015 10:44:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2CD6E2082F for ; Tue, 24 Nov 2015 10:44:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753826AbbKXKkj (ORCPT ); Tue, 24 Nov 2015 05:40:39 -0500 Received: from mx2.suse.de ([195.135.220.15]:39620 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754586AbbKXKkE (ORCPT ); Tue, 24 Nov 2015 05:40:04 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 42B7EACD7; Tue, 24 Nov 2015 10:38:40 +0000 (UTC) Received: by quack.suse.cz (Postfix, from userid 1000) id 643608282F; Tue, 24 Nov 2015 11:40:01 +0100 (CET) From: Jan Kara To: fstests@vger.kernel.org Cc: linux-ext4@vger.kernel.org, Jan Kara Subject: [PATCH 3/3] ext4/001: Select different output based on mount options Date: Tue, 24 Nov 2015 11:39:58 +0100 Message-Id: <1448361598-28438-4-git-send-email-jack@suse.cz> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1448361598-28438-1-git-send-email-jack@suse.cz> References: <1448361598-28438-1-git-send-email-jack@suse.cz> Sender: fstests-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Jan Kara Depending on mount options, we handle unwritten extents somewhat differently. So sometimes we end up zeroing out unwritten extent and converting it to written one and sometimes we just split it. Choose expected output based on mount options. Signed-off-by: Jan Kara Reviewed-by: Theodore Ts'o --- tests/ext4/001 | 4 + tests/ext4/001.cfg | 2 + tests/ext4/001.out | 333 --------------------------------------------- tests/ext4/001.out.default | 333 +++++++++++++++++++++++++++++++++++++++++++++ tests/ext4/001.out.nozero | 333 +++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 672 insertions(+), 333 deletions(-) create mode 100644 tests/ext4/001.cfg delete mode 100644 tests/ext4/001.out create mode 100644 tests/ext4/001.out.default create mode 100644 tests/ext4/001.out.nozero diff --git a/tests/ext4/001 b/tests/ext4/001 index 5409f488dd54..c22a5e1ed520 100755 --- a/tests/ext4/001 +++ b/tests/ext4/001 @@ -22,6 +22,7 @@ #----------------------------------------------------------------------- # +seqfull=$0 seq=`basename $0` seqres=$RESULT_DIR/$seq echo "QA output created by $seq" @@ -48,6 +49,9 @@ _supported_os Linux _require_xfs_io_command "fzero" _require_test +# Select appropriate golden output based on mount options +_link_out_file + testfile=$TEST_DIR/001.$$ # Standard zero range tests diff --git a/tests/ext4/001.cfg b/tests/ext4/001.cfg new file mode 100644 index 000000000000..1942203f91ea --- /dev/null +++ b/tests/ext4/001.cfg @@ -0,0 +1,2 @@ +dax: nozero +dioread_nolock: nozero diff --git a/tests/ext4/001.out b/tests/ext4/001.out deleted file mode 100644 index c2f728483b23..000000000000 --- a/tests/ext4/001.out +++ /dev/null @@ -1,333 +0,0 @@ -QA output created by 001 - 1. into a hole -0: [0..7]: hole -1: [8..23]: unwritten -2: [24..39]: hole -daa100df6e6711906b61c9ab5aa16032 - 2. into allocated space -0: [0..7]: data -1: [8..23]: unwritten -2: [24..39]: data -cc58a7417c2d7763adc45b6fcd3fa024 - 3. into unwritten space -0: [0..39]: unwritten -daa100df6e6711906b61c9ab5aa16032 - 4. hole -> data -0: [0..7]: hole -1: [8..23]: unwritten -2: [24..31]: data -3: [32..39]: hole -cc63069677939f69a6e8f68cae6a6dac - 5. hole -> unwritten -0: [0..7]: hole -1: [8..31]: unwritten -2: [32..39]: hole -daa100df6e6711906b61c9ab5aa16032 - 6. data -> hole -0: [0..7]: data -1: [8..23]: unwritten -2: [24..39]: hole -1b3779878366498b28c702ef88c4a773 - 7. data -> unwritten -0: [0..7]: data -1: [8..31]: unwritten -2: [32..39]: hole -1b3779878366498b28c702ef88c4a773 - 8. unwritten -> hole -0: [0..23]: unwritten -1: [24..39]: hole -daa100df6e6711906b61c9ab5aa16032 - 9. unwritten -> data -0: [0..23]: unwritten -1: [24..31]: data -2: [32..39]: hole -cc63069677939f69a6e8f68cae6a6dac - 10. hole -> data -> hole -0: [0..7]: hole -1: [8..31]: unwritten -2: [32..39]: hole -daa100df6e6711906b61c9ab5aa16032 - 11. data -> hole -> data -0: [0..7]: data -1: [8..31]: unwritten -2: [32..39]: data -f6aeca13ec49e5b266cd1c913cd726e3 - 12. unwritten -> data -> unwritten -0: [0..7]: data -1: [8..31]: unwritten -2: [32..39]: data -daa100df6e6711906b61c9ab5aa16032 - 13. data -> unwritten -> data -0: [0..7]: data -1: [8..31]: unwritten -2: [32..39]: data -f6aeca13ec49e5b266cd1c913cd726e3 - 14. data -> hole @ EOF -0: [0..23]: data -1: [24..39]: unwritten -e1f024eedd27ea6b1c3e9b841c850404 - 15. data -> hole @ 0 -0: [0..15]: unwritten -1: [16..39]: data -eecb7aa303d121835de05028751d301c - 16. data -> cache cold ->hole -0: [0..15]: unwritten -1: [16..39]: data -eecb7aa303d121835de05028751d301c - 17. data -> hole in single block file -0: [0..7]: data -0000000 cdcd cdcd cdcd cdcd cdcd cdcd cdcd cdcd -* -0000200 0000 0000 0000 0000 0000 0000 0000 0000 -* -0000400 cdcd cdcd cdcd cdcd cdcd cdcd cdcd cdcd -* - 1. into a hole -0: [0..7]: hole -1: [8..23]: unwritten -2: [24..39]: hole -daa100df6e6711906b61c9ab5aa16032 - 2. into allocated space -0: [0..7]: data -1: [8..23]: unwritten -2: [24..39]: data -cc58a7417c2d7763adc45b6fcd3fa024 - 3. into unwritten space -0: [0..39]: unwritten -daa100df6e6711906b61c9ab5aa16032 - 4. hole -> data -0: [0..7]: hole -1: [8..23]: unwritten -2: [24..31]: data -3: [32..39]: hole -cc63069677939f69a6e8f68cae6a6dac - 5. hole -> unwritten -0: [0..7]: hole -1: [8..31]: unwritten -2: [32..39]: hole -daa100df6e6711906b61c9ab5aa16032 - 6. data -> hole -0: [0..7]: data -1: [8..23]: unwritten -2: [24..39]: hole -1b3779878366498b28c702ef88c4a773 - 7. data -> unwritten -0: [0..7]: data -1: [8..31]: unwritten -2: [32..39]: hole -1b3779878366498b28c702ef88c4a773 - 8. unwritten -> hole -0: [0..23]: unwritten -1: [24..39]: hole -daa100df6e6711906b61c9ab5aa16032 - 9. unwritten -> data -0: [0..23]: unwritten -1: [24..31]: data -2: [32..39]: hole -cc63069677939f69a6e8f68cae6a6dac - 10. hole -> data -> hole -0: [0..7]: hole -1: [8..31]: unwritten -2: [32..39]: hole -daa100df6e6711906b61c9ab5aa16032 - 11. data -> hole -> data -0: [0..39]: data -f6aeca13ec49e5b266cd1c913cd726e3 - 12. unwritten -> data -> unwritten -0: [0..39]: unwritten -daa100df6e6711906b61c9ab5aa16032 - 13. data -> unwritten -> data -0: [0..7]: data -1: [8..31]: unwritten -2: [32..39]: data -f6aeca13ec49e5b266cd1c913cd726e3 - 14. data -> hole @ EOF -0: [0..23]: data -1: [24..39]: unwritten -e1f024eedd27ea6b1c3e9b841c850404 - 15. data -> hole @ 0 -0: [0..15]: unwritten -1: [16..39]: data -eecb7aa303d121835de05028751d301c - 16. data -> cache cold ->hole -0: [0..15]: unwritten -1: [16..39]: data -eecb7aa303d121835de05028751d301c - 17. data -> hole in single block file -0: [0..7]: data -0000000 cdcd cdcd cdcd cdcd cdcd cdcd cdcd cdcd -* -0000200 0000 0000 0000 0000 0000 0000 0000 0000 -* -0000400 cdcd cdcd cdcd cdcd cdcd cdcd cdcd cdcd -* - 1. into a hole -0: [0..7]: hole -1: [8..23]: unwritten -2: [24..39]: hole -daa100df6e6711906b61c9ab5aa16032 - 2. into allocated space -0: [0..7]: data -1: [8..23]: unwritten -2: [24..39]: data -cc58a7417c2d7763adc45b6fcd3fa024 - 3. into unwritten space -0: [0..7]: data -1: [8..23]: unwritten -2: [24..39]: data -cc58a7417c2d7763adc45b6fcd3fa024 - 4. hole -> data -0: [0..7]: data -1: [8..23]: unwritten -2: [24..39]: data -cc58a7417c2d7763adc45b6fcd3fa024 - 5. hole -> unwritten -0: [0..7]: data -1: [8..23]: unwritten -2: [24..39]: data -cc58a7417c2d7763adc45b6fcd3fa024 - 6. data -> hole -0: [0..7]: data -1: [8..23]: unwritten -2: [24..39]: data -cc58a7417c2d7763adc45b6fcd3fa024 - 7. data -> unwritten -0: [0..7]: data -1: [8..23]: unwritten -2: [24..39]: data -cc58a7417c2d7763adc45b6fcd3fa024 - 8. unwritten -> hole -0: [0..7]: data -1: [8..23]: unwritten -2: [24..39]: data -cc58a7417c2d7763adc45b6fcd3fa024 - 9. unwritten -> data -0: [0..7]: data -1: [8..23]: unwritten -2: [24..39]: data -cc58a7417c2d7763adc45b6fcd3fa024 - 10. hole -> data -> hole -0: [0..7]: data -1: [8..31]: unwritten -2: [32..39]: data -f6aeca13ec49e5b266cd1c913cd726e3 - 11. data -> hole -> data -0: [0..7]: data -1: [8..31]: unwritten -2: [32..39]: data -f6aeca13ec49e5b266cd1c913cd726e3 - 12. unwritten -> data -> unwritten -0: [0..7]: data -1: [8..31]: unwritten -2: [32..39]: data -f6aeca13ec49e5b266cd1c913cd726e3 - 13. data -> unwritten -> data -0: [0..7]: data -1: [8..31]: unwritten -2: [32..39]: data -f6aeca13ec49e5b266cd1c913cd726e3 - 14. data -> hole @ EOF -0: [0..23]: data -1: [24..39]: unwritten -e1f024eedd27ea6b1c3e9b841c850404 - 15. data -> hole @ 0 -0: [0..15]: unwritten -1: [16..39]: data -eecb7aa303d121835de05028751d301c - 16. data -> cache cold ->hole -0: [0..15]: unwritten -1: [16..39]: data -eecb7aa303d121835de05028751d301c - 17. data -> hole in single block file -0: [0..7]: data -0000000 cdcd cdcd cdcd cdcd cdcd cdcd cdcd cdcd -* -0000200 0000 0000 0000 0000 0000 0000 0000 0000 -* -0000400 cdcd cdcd cdcd cdcd cdcd cdcd cdcd cdcd -* - 1. into a hole -0: [0..7]: hole -1: [8..23]: unwritten -2: [24..39]: hole -daa100df6e6711906b61c9ab5aa16032 - 2. into allocated space -0: [0..7]: data -1: [8..23]: unwritten -2: [24..39]: data -cc58a7417c2d7763adc45b6fcd3fa024 - 3. into unwritten space -0: [0..7]: data -1: [8..23]: unwritten -2: [24..39]: data -cc58a7417c2d7763adc45b6fcd3fa024 - 4. hole -> data -0: [0..7]: data -1: [8..23]: unwritten -2: [24..39]: data -cc58a7417c2d7763adc45b6fcd3fa024 - 5. hole -> unwritten -0: [0..7]: data -1: [8..23]: unwritten -2: [24..39]: data -cc58a7417c2d7763adc45b6fcd3fa024 - 6. data -> hole -0: [0..7]: data -1: [8..23]: unwritten -2: [24..39]: data -cc58a7417c2d7763adc45b6fcd3fa024 - 7. data -> unwritten -0: [0..7]: data -1: [8..23]: unwritten -2: [24..39]: data -cc58a7417c2d7763adc45b6fcd3fa024 - 8. unwritten -> hole -0: [0..7]: data -1: [8..23]: unwritten -2: [24..39]: data -cc58a7417c2d7763adc45b6fcd3fa024 - 9. unwritten -> data -0: [0..7]: data -1: [8..23]: unwritten -2: [24..39]: data -cc58a7417c2d7763adc45b6fcd3fa024 - 10. hole -> data -> hole -0: [0..7]: data -1: [8..31]: unwritten -2: [32..39]: data -f6aeca13ec49e5b266cd1c913cd726e3 - 11. data -> hole -> data -0: [0..7]: data -1: [8..31]: unwritten -2: [32..39]: data -f6aeca13ec49e5b266cd1c913cd726e3 - 12. unwritten -> data -> unwritten -0: [0..7]: data -1: [8..31]: unwritten -2: [32..39]: data -f6aeca13ec49e5b266cd1c913cd726e3 - 13. data -> unwritten -> data -0: [0..7]: data -1: [8..31]: unwritten -2: [32..39]: data -f6aeca13ec49e5b266cd1c913cd726e3 - 14. data -> hole @ EOF -0: [0..23]: data -1: [24..39]: unwritten -e1f024eedd27ea6b1c3e9b841c850404 - 15. data -> hole @ 0 -0: [0..15]: unwritten -1: [16..39]: data -eecb7aa303d121835de05028751d301c - 16. data -> cache cold ->hole -0: [0..15]: unwritten -1: [16..39]: data -eecb7aa303d121835de05028751d301c - 17. data -> hole in single block file -0: [0..7]: data -0000000 cdcd cdcd cdcd cdcd cdcd cdcd cdcd cdcd -* -0000200 0000 0000 0000 0000 0000 0000 0000 0000 -* -0000400 cdcd cdcd cdcd cdcd cdcd cdcd cdcd cdcd -* diff --git a/tests/ext4/001.out.default b/tests/ext4/001.out.default new file mode 100644 index 000000000000..c2f728483b23 --- /dev/null +++ b/tests/ext4/001.out.default @@ -0,0 +1,333 @@ +QA output created by 001 + 1. into a hole +0: [0..7]: hole +1: [8..23]: unwritten +2: [24..39]: hole +daa100df6e6711906b61c9ab5aa16032 + 2. into allocated space +0: [0..7]: data +1: [8..23]: unwritten +2: [24..39]: data +cc58a7417c2d7763adc45b6fcd3fa024 + 3. into unwritten space +0: [0..39]: unwritten +daa100df6e6711906b61c9ab5aa16032 + 4. hole -> data +0: [0..7]: hole +1: [8..23]: unwritten +2: [24..31]: data +3: [32..39]: hole +cc63069677939f69a6e8f68cae6a6dac + 5. hole -> unwritten +0: [0..7]: hole +1: [8..31]: unwritten +2: [32..39]: hole +daa100df6e6711906b61c9ab5aa16032 + 6. data -> hole +0: [0..7]: data +1: [8..23]: unwritten +2: [24..39]: hole +1b3779878366498b28c702ef88c4a773 + 7. data -> unwritten +0: [0..7]: data +1: [8..31]: unwritten +2: [32..39]: hole +1b3779878366498b28c702ef88c4a773 + 8. unwritten -> hole +0: [0..23]: unwritten +1: [24..39]: hole +daa100df6e6711906b61c9ab5aa16032 + 9. unwritten -> data +0: [0..23]: unwritten +1: [24..31]: data +2: [32..39]: hole +cc63069677939f69a6e8f68cae6a6dac + 10. hole -> data -> hole +0: [0..7]: hole +1: [8..31]: unwritten +2: [32..39]: hole +daa100df6e6711906b61c9ab5aa16032 + 11. data -> hole -> data +0: [0..7]: data +1: [8..31]: unwritten +2: [32..39]: data +f6aeca13ec49e5b266cd1c913cd726e3 + 12. unwritten -> data -> unwritten +0: [0..7]: data +1: [8..31]: unwritten +2: [32..39]: data +daa100df6e6711906b61c9ab5aa16032 + 13. data -> unwritten -> data +0: [0..7]: data +1: [8..31]: unwritten +2: [32..39]: data +f6aeca13ec49e5b266cd1c913cd726e3 + 14. data -> hole @ EOF +0: [0..23]: data +1: [24..39]: unwritten +e1f024eedd27ea6b1c3e9b841c850404 + 15. data -> hole @ 0 +0: [0..15]: unwritten +1: [16..39]: data +eecb7aa303d121835de05028751d301c + 16. data -> cache cold ->hole +0: [0..15]: unwritten +1: [16..39]: data +eecb7aa303d121835de05028751d301c + 17. data -> hole in single block file +0: [0..7]: data +0000000 cdcd cdcd cdcd cdcd cdcd cdcd cdcd cdcd +* +0000200 0000 0000 0000 0000 0000 0000 0000 0000 +* +0000400 cdcd cdcd cdcd cdcd cdcd cdcd cdcd cdcd +* + 1. into a hole +0: [0..7]: hole +1: [8..23]: unwritten +2: [24..39]: hole +daa100df6e6711906b61c9ab5aa16032 + 2. into allocated space +0: [0..7]: data +1: [8..23]: unwritten +2: [24..39]: data +cc58a7417c2d7763adc45b6fcd3fa024 + 3. into unwritten space +0: [0..39]: unwritten +daa100df6e6711906b61c9ab5aa16032 + 4. hole -> data +0: [0..7]: hole +1: [8..23]: unwritten +2: [24..31]: data +3: [32..39]: hole +cc63069677939f69a6e8f68cae6a6dac + 5. hole -> unwritten +0: [0..7]: hole +1: [8..31]: unwritten +2: [32..39]: hole +daa100df6e6711906b61c9ab5aa16032 + 6. data -> hole +0: [0..7]: data +1: [8..23]: unwritten +2: [24..39]: hole +1b3779878366498b28c702ef88c4a773 + 7. data -> unwritten +0: [0..7]: data +1: [8..31]: unwritten +2: [32..39]: hole +1b3779878366498b28c702ef88c4a773 + 8. unwritten -> hole +0: [0..23]: unwritten +1: [24..39]: hole +daa100df6e6711906b61c9ab5aa16032 + 9. unwritten -> data +0: [0..23]: unwritten +1: [24..31]: data +2: [32..39]: hole +cc63069677939f69a6e8f68cae6a6dac + 10. hole -> data -> hole +0: [0..7]: hole +1: [8..31]: unwritten +2: [32..39]: hole +daa100df6e6711906b61c9ab5aa16032 + 11. data -> hole -> data +0: [0..39]: data +f6aeca13ec49e5b266cd1c913cd726e3 + 12. unwritten -> data -> unwritten +0: [0..39]: unwritten +daa100df6e6711906b61c9ab5aa16032 + 13. data -> unwritten -> data +0: [0..7]: data +1: [8..31]: unwritten +2: [32..39]: data +f6aeca13ec49e5b266cd1c913cd726e3 + 14. data -> hole @ EOF +0: [0..23]: data +1: [24..39]: unwritten +e1f024eedd27ea6b1c3e9b841c850404 + 15. data -> hole @ 0 +0: [0..15]: unwritten +1: [16..39]: data +eecb7aa303d121835de05028751d301c + 16. data -> cache cold ->hole +0: [0..15]: unwritten +1: [16..39]: data +eecb7aa303d121835de05028751d301c + 17. data -> hole in single block file +0: [0..7]: data +0000000 cdcd cdcd cdcd cdcd cdcd cdcd cdcd cdcd +* +0000200 0000 0000 0000 0000 0000 0000 0000 0000 +* +0000400 cdcd cdcd cdcd cdcd cdcd cdcd cdcd cdcd +* + 1. into a hole +0: [0..7]: hole +1: [8..23]: unwritten +2: [24..39]: hole +daa100df6e6711906b61c9ab5aa16032 + 2. into allocated space +0: [0..7]: data +1: [8..23]: unwritten +2: [24..39]: data +cc58a7417c2d7763adc45b6fcd3fa024 + 3. into unwritten space +0: [0..7]: data +1: [8..23]: unwritten +2: [24..39]: data +cc58a7417c2d7763adc45b6fcd3fa024 + 4. hole -> data +0: [0..7]: data +1: [8..23]: unwritten +2: [24..39]: data +cc58a7417c2d7763adc45b6fcd3fa024 + 5. hole -> unwritten +0: [0..7]: data +1: [8..23]: unwritten +2: [24..39]: data +cc58a7417c2d7763adc45b6fcd3fa024 + 6. data -> hole +0: [0..7]: data +1: [8..23]: unwritten +2: [24..39]: data +cc58a7417c2d7763adc45b6fcd3fa024 + 7. data -> unwritten +0: [0..7]: data +1: [8..23]: unwritten +2: [24..39]: data +cc58a7417c2d7763adc45b6fcd3fa024 + 8. unwritten -> hole +0: [0..7]: data +1: [8..23]: unwritten +2: [24..39]: data +cc58a7417c2d7763adc45b6fcd3fa024 + 9. unwritten -> data +0: [0..7]: data +1: [8..23]: unwritten +2: [24..39]: data +cc58a7417c2d7763adc45b6fcd3fa024 + 10. hole -> data -> hole +0: [0..7]: data +1: [8..31]: unwritten +2: [32..39]: data +f6aeca13ec49e5b266cd1c913cd726e3 + 11. data -> hole -> data +0: [0..7]: data +1: [8..31]: unwritten +2: [32..39]: data +f6aeca13ec49e5b266cd1c913cd726e3 + 12. unwritten -> data -> unwritten +0: [0..7]: data +1: [8..31]: unwritten +2: [32..39]: data +f6aeca13ec49e5b266cd1c913cd726e3 + 13. data -> unwritten -> data +0: [0..7]: data +1: [8..31]: unwritten +2: [32..39]: data +f6aeca13ec49e5b266cd1c913cd726e3 + 14. data -> hole @ EOF +0: [0..23]: data +1: [24..39]: unwritten +e1f024eedd27ea6b1c3e9b841c850404 + 15. data -> hole @ 0 +0: [0..15]: unwritten +1: [16..39]: data +eecb7aa303d121835de05028751d301c + 16. data -> cache cold ->hole +0: [0..15]: unwritten +1: [16..39]: data +eecb7aa303d121835de05028751d301c + 17. data -> hole in single block file +0: [0..7]: data +0000000 cdcd cdcd cdcd cdcd cdcd cdcd cdcd cdcd +* +0000200 0000 0000 0000 0000 0000 0000 0000 0000 +* +0000400 cdcd cdcd cdcd cdcd cdcd cdcd cdcd cdcd +* + 1. into a hole +0: [0..7]: hole +1: [8..23]: unwritten +2: [24..39]: hole +daa100df6e6711906b61c9ab5aa16032 + 2. into allocated space +0: [0..7]: data +1: [8..23]: unwritten +2: [24..39]: data +cc58a7417c2d7763adc45b6fcd3fa024 + 3. into unwritten space +0: [0..7]: data +1: [8..23]: unwritten +2: [24..39]: data +cc58a7417c2d7763adc45b6fcd3fa024 + 4. hole -> data +0: [0..7]: data +1: [8..23]: unwritten +2: [24..39]: data +cc58a7417c2d7763adc45b6fcd3fa024 + 5. hole -> unwritten +0: [0..7]: data +1: [8..23]: unwritten +2: [24..39]: data +cc58a7417c2d7763adc45b6fcd3fa024 + 6. data -> hole +0: [0..7]: data +1: [8..23]: unwritten +2: [24..39]: data +cc58a7417c2d7763adc45b6fcd3fa024 + 7. data -> unwritten +0: [0..7]: data +1: [8..23]: unwritten +2: [24..39]: data +cc58a7417c2d7763adc45b6fcd3fa024 + 8. unwritten -> hole +0: [0..7]: data +1: [8..23]: unwritten +2: [24..39]: data +cc58a7417c2d7763adc45b6fcd3fa024 + 9. unwritten -> data +0: [0..7]: data +1: [8..23]: unwritten +2: [24..39]: data +cc58a7417c2d7763adc45b6fcd3fa024 + 10. hole -> data -> hole +0: [0..7]: data +1: [8..31]: unwritten +2: [32..39]: data +f6aeca13ec49e5b266cd1c913cd726e3 + 11. data -> hole -> data +0: [0..7]: data +1: [8..31]: unwritten +2: [32..39]: data +f6aeca13ec49e5b266cd1c913cd726e3 + 12. unwritten -> data -> unwritten +0: [0..7]: data +1: [8..31]: unwritten +2: [32..39]: data +f6aeca13ec49e5b266cd1c913cd726e3 + 13. data -> unwritten -> data +0: [0..7]: data +1: [8..31]: unwritten +2: [32..39]: data +f6aeca13ec49e5b266cd1c913cd726e3 + 14. data -> hole @ EOF +0: [0..23]: data +1: [24..39]: unwritten +e1f024eedd27ea6b1c3e9b841c850404 + 15. data -> hole @ 0 +0: [0..15]: unwritten +1: [16..39]: data +eecb7aa303d121835de05028751d301c + 16. data -> cache cold ->hole +0: [0..15]: unwritten +1: [16..39]: data +eecb7aa303d121835de05028751d301c + 17. data -> hole in single block file +0: [0..7]: data +0000000 cdcd cdcd cdcd cdcd cdcd cdcd cdcd cdcd +* +0000200 0000 0000 0000 0000 0000 0000 0000 0000 +* +0000400 cdcd cdcd cdcd cdcd cdcd cdcd cdcd cdcd +* diff --git a/tests/ext4/001.out.nozero b/tests/ext4/001.out.nozero new file mode 100644 index 000000000000..c631034e3ec1 --- /dev/null +++ b/tests/ext4/001.out.nozero @@ -0,0 +1,333 @@ +QA output created by 001 + 1. into a hole +0: [0..7]: hole +1: [8..23]: unwritten +2: [24..39]: hole +daa100df6e6711906b61c9ab5aa16032 + 2. into allocated space +0: [0..7]: data +1: [8..23]: unwritten +2: [24..39]: data +cc58a7417c2d7763adc45b6fcd3fa024 + 3. into unwritten space +0: [0..39]: unwritten +daa100df6e6711906b61c9ab5aa16032 + 4. hole -> data +0: [0..7]: hole +1: [8..23]: unwritten +2: [24..31]: data +3: [32..39]: hole +cc63069677939f69a6e8f68cae6a6dac + 5. hole -> unwritten +0: [0..7]: hole +1: [8..31]: unwritten +2: [32..39]: hole +daa100df6e6711906b61c9ab5aa16032 + 6. data -> hole +0: [0..7]: data +1: [8..23]: unwritten +2: [24..39]: hole +1b3779878366498b28c702ef88c4a773 + 7. data -> unwritten +0: [0..7]: data +1: [8..31]: unwritten +2: [32..39]: hole +1b3779878366498b28c702ef88c4a773 + 8. unwritten -> hole +0: [0..23]: unwritten +1: [24..39]: hole +daa100df6e6711906b61c9ab5aa16032 + 9. unwritten -> data +0: [0..23]: unwritten +1: [24..31]: data +2: [32..39]: hole +cc63069677939f69a6e8f68cae6a6dac + 10. hole -> data -> hole +0: [0..7]: hole +1: [8..31]: unwritten +2: [32..39]: hole +daa100df6e6711906b61c9ab5aa16032 + 11. data -> hole -> data +0: [0..7]: data +1: [8..31]: unwritten +2: [32..39]: data +f6aeca13ec49e5b266cd1c913cd726e3 + 12. unwritten -> data -> unwritten +0: [0..39]: unwritten +daa100df6e6711906b61c9ab5aa16032 + 13. data -> unwritten -> data +0: [0..7]: data +1: [8..31]: unwritten +2: [32..39]: data +f6aeca13ec49e5b266cd1c913cd726e3 + 14. data -> hole @ EOF +0: [0..23]: data +1: [24..39]: unwritten +e1f024eedd27ea6b1c3e9b841c850404 + 15. data -> hole @ 0 +0: [0..15]: unwritten +1: [16..39]: data +eecb7aa303d121835de05028751d301c + 16. data -> cache cold ->hole +0: [0..15]: unwritten +1: [16..39]: data +eecb7aa303d121835de05028751d301c + 17. data -> hole in single block file +0: [0..7]: data +0000000 cdcd cdcd cdcd cdcd cdcd cdcd cdcd cdcd +* +0000200 0000 0000 0000 0000 0000 0000 0000 0000 +* +0000400 cdcd cdcd cdcd cdcd cdcd cdcd cdcd cdcd +* + 1. into a hole +0: [0..7]: hole +1: [8..23]: unwritten +2: [24..39]: hole +daa100df6e6711906b61c9ab5aa16032 + 2. into allocated space +0: [0..7]: data +1: [8..23]: unwritten +2: [24..39]: data +cc58a7417c2d7763adc45b6fcd3fa024 + 3. into unwritten space +0: [0..39]: unwritten +daa100df6e6711906b61c9ab5aa16032 + 4. hole -> data +0: [0..7]: hole +1: [8..23]: unwritten +2: [24..31]: data +3: [32..39]: hole +cc63069677939f69a6e8f68cae6a6dac + 5. hole -> unwritten +0: [0..7]: hole +1: [8..31]: unwritten +2: [32..39]: hole +daa100df6e6711906b61c9ab5aa16032 + 6. data -> hole +0: [0..7]: data +1: [8..23]: unwritten +2: [24..39]: hole +1b3779878366498b28c702ef88c4a773 + 7. data -> unwritten +0: [0..7]: data +1: [8..31]: unwritten +2: [32..39]: hole +1b3779878366498b28c702ef88c4a773 + 8. unwritten -> hole +0: [0..23]: unwritten +1: [24..39]: hole +daa100df6e6711906b61c9ab5aa16032 + 9. unwritten -> data +0: [0..23]: unwritten +1: [24..31]: data +2: [32..39]: hole +cc63069677939f69a6e8f68cae6a6dac + 10. hole -> data -> hole +0: [0..7]: hole +1: [8..31]: unwritten +2: [32..39]: hole +daa100df6e6711906b61c9ab5aa16032 + 11. data -> hole -> data +0: [0..7]: data +1: [8..31]: unwritten +2: [32..39]: data +f6aeca13ec49e5b266cd1c913cd726e3 + 12. unwritten -> data -> unwritten +0: [0..39]: unwritten +daa100df6e6711906b61c9ab5aa16032 + 13. data -> unwritten -> data +0: [0..7]: data +1: [8..31]: unwritten +2: [32..39]: data +f6aeca13ec49e5b266cd1c913cd726e3 + 14. data -> hole @ EOF +0: [0..23]: data +1: [24..39]: unwritten +e1f024eedd27ea6b1c3e9b841c850404 + 15. data -> hole @ 0 +0: [0..15]: unwritten +1: [16..39]: data +eecb7aa303d121835de05028751d301c + 16. data -> cache cold ->hole +0: [0..15]: unwritten +1: [16..39]: data +eecb7aa303d121835de05028751d301c + 17. data -> hole in single block file +0: [0..7]: data +0000000 cdcd cdcd cdcd cdcd cdcd cdcd cdcd cdcd +* +0000200 0000 0000 0000 0000 0000 0000 0000 0000 +* +0000400 cdcd cdcd cdcd cdcd cdcd cdcd cdcd cdcd +* + 1. into a hole +0: [0..7]: hole +1: [8..23]: unwritten +2: [24..39]: hole +daa100df6e6711906b61c9ab5aa16032 + 2. into allocated space +0: [0..7]: data +1: [8..23]: unwritten +2: [24..39]: data +cc58a7417c2d7763adc45b6fcd3fa024 + 3. into unwritten space +0: [0..7]: data +1: [8..23]: unwritten +2: [24..39]: data +cc58a7417c2d7763adc45b6fcd3fa024 + 4. hole -> data +0: [0..7]: data +1: [8..23]: unwritten +2: [24..39]: data +cc58a7417c2d7763adc45b6fcd3fa024 + 5. hole -> unwritten +0: [0..7]: data +1: [8..23]: unwritten +2: [24..39]: data +cc58a7417c2d7763adc45b6fcd3fa024 + 6. data -> hole +0: [0..7]: data +1: [8..23]: unwritten +2: [24..39]: data +cc58a7417c2d7763adc45b6fcd3fa024 + 7. data -> unwritten +0: [0..7]: data +1: [8..23]: unwritten +2: [24..39]: data +cc58a7417c2d7763adc45b6fcd3fa024 + 8. unwritten -> hole +0: [0..7]: data +1: [8..23]: unwritten +2: [24..39]: data +cc58a7417c2d7763adc45b6fcd3fa024 + 9. unwritten -> data +0: [0..7]: data +1: [8..23]: unwritten +2: [24..39]: data +cc58a7417c2d7763adc45b6fcd3fa024 + 10. hole -> data -> hole +0: [0..7]: data +1: [8..31]: unwritten +2: [32..39]: data +f6aeca13ec49e5b266cd1c913cd726e3 + 11. data -> hole -> data +0: [0..7]: data +1: [8..31]: unwritten +2: [32..39]: data +f6aeca13ec49e5b266cd1c913cd726e3 + 12. unwritten -> data -> unwritten +0: [0..7]: data +1: [8..31]: unwritten +2: [32..39]: data +f6aeca13ec49e5b266cd1c913cd726e3 + 13. data -> unwritten -> data +0: [0..7]: data +1: [8..31]: unwritten +2: [32..39]: data +f6aeca13ec49e5b266cd1c913cd726e3 + 14. data -> hole @ EOF +0: [0..23]: data +1: [24..39]: unwritten +e1f024eedd27ea6b1c3e9b841c850404 + 15. data -> hole @ 0 +0: [0..15]: unwritten +1: [16..39]: data +eecb7aa303d121835de05028751d301c + 16. data -> cache cold ->hole +0: [0..15]: unwritten +1: [16..39]: data +eecb7aa303d121835de05028751d301c + 17. data -> hole in single block file +0: [0..7]: data +0000000 cdcd cdcd cdcd cdcd cdcd cdcd cdcd cdcd +* +0000200 0000 0000 0000 0000 0000 0000 0000 0000 +* +0000400 cdcd cdcd cdcd cdcd cdcd cdcd cdcd cdcd +* + 1. into a hole +0: [0..7]: hole +1: [8..23]: unwritten +2: [24..39]: hole +daa100df6e6711906b61c9ab5aa16032 + 2. into allocated space +0: [0..7]: data +1: [8..23]: unwritten +2: [24..39]: data +cc58a7417c2d7763adc45b6fcd3fa024 + 3. into unwritten space +0: [0..7]: data +1: [8..23]: unwritten +2: [24..39]: data +cc58a7417c2d7763adc45b6fcd3fa024 + 4. hole -> data +0: [0..7]: data +1: [8..23]: unwritten +2: [24..39]: data +cc58a7417c2d7763adc45b6fcd3fa024 + 5. hole -> unwritten +0: [0..7]: data +1: [8..23]: unwritten +2: [24..39]: data +cc58a7417c2d7763adc45b6fcd3fa024 + 6. data -> hole +0: [0..7]: data +1: [8..23]: unwritten +2: [24..39]: data +cc58a7417c2d7763adc45b6fcd3fa024 + 7. data -> unwritten +0: [0..7]: data +1: [8..23]: unwritten +2: [24..39]: data +cc58a7417c2d7763adc45b6fcd3fa024 + 8. unwritten -> hole +0: [0..7]: data +1: [8..23]: unwritten +2: [24..39]: data +cc58a7417c2d7763adc45b6fcd3fa024 + 9. unwritten -> data +0: [0..7]: data +1: [8..23]: unwritten +2: [24..39]: data +cc58a7417c2d7763adc45b6fcd3fa024 + 10. hole -> data -> hole +0: [0..7]: data +1: [8..31]: unwritten +2: [32..39]: data +f6aeca13ec49e5b266cd1c913cd726e3 + 11. data -> hole -> data +0: [0..7]: data +1: [8..31]: unwritten +2: [32..39]: data +f6aeca13ec49e5b266cd1c913cd726e3 + 12. unwritten -> data -> unwritten +0: [0..7]: data +1: [8..31]: unwritten +2: [32..39]: data +f6aeca13ec49e5b266cd1c913cd726e3 + 13. data -> unwritten -> data +0: [0..7]: data +1: [8..31]: unwritten +2: [32..39]: data +f6aeca13ec49e5b266cd1c913cd726e3 + 14. data -> hole @ EOF +0: [0..23]: data +1: [24..39]: unwritten +e1f024eedd27ea6b1c3e9b841c850404 + 15. data -> hole @ 0 +0: [0..15]: unwritten +1: [16..39]: data +eecb7aa303d121835de05028751d301c + 16. data -> cache cold ->hole +0: [0..15]: unwritten +1: [16..39]: data +eecb7aa303d121835de05028751d301c + 17. data -> hole in single block file +0: [0..7]: data +0000000 cdcd cdcd cdcd cdcd cdcd cdcd cdcd cdcd +* +0000200 0000 0000 0000 0000 0000 0000 0000 0000 +* +0000400 cdcd cdcd cdcd cdcd cdcd cdcd cdcd cdcd +*