From: Nathan Scott Date: Thu, 2 Oct 2003 05:09:02 +0000 (+0000) Subject: Fix dump tests which compare before/after dumps using ls - directory size is not... X-Git-Tag: v1.1.0~903 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=35e1864e716cf3a1f4473d7d94e578fedd86dbcc;p=users%2Fhch%2Fxfstests-dev.git Fix dump tests which compare before/after dumps using ls - directory size is not constant in the presense of large inums --- diff --git a/common.dump b/common.dump index eeb74cd4b..d90b6eec7 100644 --- a/common.dump +++ b/common.dump @@ -722,12 +722,15 @@ _create_dumpdir_hardlinks() # # Filter for ls # Filter out dates on symlinks and char devices +# Filter out size on directories because this can differ +# when transitioning to long inode numbers (ie. 64 bits). # _ls_filter() { $AWK_PROG ' /^l/ { date = $8; sub(date,"DATE"); print} /^c/ { date = $9; sub(date,"DATE"); print} + /^d/ { size = $5; sub(size,"SIZE"); print} {print}' \ | sed -e 's/total [0-9][0-9]*/total TOTAL/' }