#!/bin/sh
if [ ! $# = 1 ]; then echo usage: $0 device >&2; exit 1; fi
echo $'Inode\tOwner\tMode\tSize\tBlocks\tTime deleted'
echo "lsdel" | debugfs $1 | section +2 -1 | perl -pe 's/^ +//; for $n (1..4) { s/ +/\t/ }; s/ +//; s/ +/\t/' | tac
