Fix dump tests which compare before/after dumps using ls - directory size is not constant in the presense of large inums

This commit is contained in:
Nathan Scott
2003-10-02 05:09:02 +00:00
parent 0664352cb8
commit 35e1864e71
+3
View 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/'
}