>Find the largest files that are open:
>
># du -h /proc/*/fd/* | sort -n
>
>or
>
>Find all open files that have a link count of zero (have been removed)
>
># ls -l /proc/*/fd/* \
>    | nawk 'BEGIN { print "Size_MB File" }
>            $2 == 0 && $1 ~ /^-/ {
>               printf "%7d %s\n", $5/1024/1024, $NF
>            }'


Nah:

        find /proc/*/fd -type f -links 0

(Add a -size +1000000c for good measure, to find unlinked files over one SI MB)

Casper
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to