Comment 0 for bug 1344178

Revision history for this message
David Moreau Simard (dmsimard) wrote :

It is currently possible to have swift-recon report on disk usage by two means:
swift-recon -d OR
swift-recon --all (which includes -d)

Disk usage provides two options:
--human-readable to provide usage in GB rather than bytes
--top <integer> to list devices with the most usage

These options are currently usable when using -d but not --all.
This is because the options are not passed to disk_usage when using all:
https://github.com/openstack/swift/blob/d317888a7eae276ae9dddf26a9030d01f6ba00fe/swift/cli/recon.py#L930

Versus when using -d:
https://github.com/openstack/swift/blob/d317888a7eae276ae9dddf26a9030d01f6ba00fe/swift/cli/recon.py#L965