Fix dump tests which compare before/after dumps using ls - directory size is not...
authorNathan Scott <nathans@sgi.com>
Thu, 2 Oct 2003 05:09:02 +0000 (05:09 +0000)
committerNathan Scott <nathans@sgi.com>
Thu, 2 Oct 2003 05:09:02 +0000 (05:09 +0000)
common.dump

index eeb74cd4b9c3c32a16d86f455624ab42975da977..d90b6eec73aa02d73e14715c5a8f4c9964f62da7 100644 (file)
@@ -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/'
 }