3
0

du-k-works 466 B

12345678910111213
  1. mkdir du.testdir
  2. cd du.testdir
  3. dd if=/dev/zero of=file1 bs=1k count=64 2>/dev/null
  4. dd if=/dev/zero of=file2 bs=1k count=16 2>/dev/null
  5. # ext4 on images <512M gives 81kb
  6. # ext3 on images <512M gives 83kb
  7. # a bsd system reportedly gives 82kb
  8. test x"`busybox du -k .`" = x"80 ." \
  9. -o x"`busybox du -k .`" = x"81 ." \
  10. -o x"`busybox du -k .`" = x"82 ." \
  11. -o x"`busybox du -k .`" = x"83 ." \
  12. -o x"`busybox du -k .`" = x"84 ." \
  13. -o x"`busybox du -k .`" = x"88 ."