bin/mktmpdir: grok NFS root

"df -l" is going to hurt (or at least spam) if it's a diskless node;
"df -P" helps maintain output parseability.  So be it.
This commit is contained in:
Michael Shigorin 2012-07-16 19:55:30 +03:00
parent 809ae4d9e8
commit 18f1a6360a

View File

@ -43,7 +43,7 @@ choose_tmpdir() {
for i in "$@"; do
[ -d "$i" -a -w "$i" ] || continue
echo -n "$i "
df -Tl "$i" | tail -1
df -PT "$i" | tail -1
done \
| sort -unk6 \
| while read dir dev fstype size used free percent mnt; do