project-disk-use: follow du command line args if possible
commitd01e7dc3ac0a88d807b11ffa7ef2a04491ec313f
authorKyle J. McKay <mackyle@gmail.com>
Fri, 1 May 2015 02:54:21 +0000 (30 19:54 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Fri, 1 May 2015 02:54:21 +0000 (30 19:54 -0700)
treeb674a1625ef6734e34a48fe5d6ad01bfc43ebd74
parent9b88999e18b0c295bcce92a74fa6ed67ce2dbec5
project-disk-use: follow du command line args if possible

On a deployment where bind mounts are not available and
chroot sshd support is being used, the $Girocco::Config::reporoot
might end up being a symbolic link to the actual location
of the repositories inside the chroot.

In this case we need to follow the link when getting disk
use information.  Although not POSIX, the -H option to
du seems to be widely supported, so use it if it's
available.

In the future we may use an alternate method to resolve
the symlink that does not require -H.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
shlib.sh
toolbox/reports/project-disk-use.sh