summaryrefslogtreecommitdiffstats
path: root/src/tools/rbd/action/DiskUsage.cc (follow)
Commit message (Collapse)AuthorAgeFilesLines
* rbd: make sure the return-value 'r' will be returned.Shiyang Ruan2018-11-021-1/+1
| | | | Signed-off-by: Shiyang Ruan <ruansy.fnst@cn.fujitsu.com>
* tools/rbd: minor fixes for rbd du displaysongweibin2018-08-151-1/+35
| | | | Signed-off-by: songweibin <song.weibin@zte.com.cn>
* rbd: add support for namespacesJason Dillaman2018-06-221-4/+5
| | | | Signed-off-by: Jason Dillaman <dillaman@redhat.com>
* tools/rbd/action: align column headers leftSage Weil2018-06-151-2/+2
| | | | | | | | | | | | | | | | Even if the column content is right-aligned, we should align the column header left. That way intead of SNAPID NAME SIZE TIMESTAMP NAMESPACE 4 snap 1 GiB Mon Jun 4 16:27:17 2018 user which has makes it hard to visually parse what that 1 belongs to (NAME or SIZE?), we get SNAPID NAME SIZE TIMESTAMP NAMESPACE 4 snap 1 GiB Mon Jun 4 16:27:17 2018 user Signed-off-by: Sage Weil <sage@redhat.com>
* rbd: disable cache for actions that open multiple imagesJason Dillaman2018-05-111-0/+2
| | | | | Fixes: http://tracker.ceph.com/issues/24092 Signed-off-by: Jason Dillaman <dillaman@redhat.com>
* rbd: disk-usage can now optionally compute exact on-disk usageJason Dillaman2018-05-091-7/+8
| | | | | Fixes: http://tracker.ceph.com/issues/24064 Signed-off-by: Jason Dillaman <dillaman@redhat.com>
* include/types: format decimal numbers with decimal factorJan Fajerski2018-04-031-4/+4
| | | | | | | | | | | Until now bytes and objects were formatted using si_t which used 1024 as the factor to pretty print large numbers. For object counts a factor of 1000 is preferred. This commit retires the si_t formatting (as well as prettybyte_t, kb_t and pretty_si_t) completely and adds structs and formatting for binary and decimal units, bin_u_t and dec_u_t respectively. Fixes: http://tracker.ceph.com/issues/22095 Signed-off-by: Jan Fajerski <jfajerski@suse.com>
* rbd: filter out UserSnapshotNamespace in do_disk_usagesongweibin2018-02-221-1/+6
| | | | Signed-off-by: songweibin <song.weibin@zte.com.cn>
* rbd: add missing period at the end of mesgsongweibin2018-01-311-1/+1
| | | | Signed-off-by: songweibin <song.weibin@zte.com.cn>
* rbd: properly pass ceph global command line args to subprocessMykola Golub2018-01-171-1/+2
| | | | | | | | | | | | | | | | When initializing the global context, global_init parses command line arguments and removes ceph global args from the list. As a result they are not visible for rbd command line parser and global options were ignored when passing them to subprocesses like nbd or ggate. Fix this by keeping a list of ceph global init command line arguments. To build the list we compare the list of initial command line args and those that remain after global_init parsing. After this fix it is possible to pass any ceph global option to a subprocess. Signed-off-by: Mykola Golub <mgolub@suse.com>
* rbd: disk usage on empty pool no longer returns an error messageJason Dillaman2017-11-201-1/+1
| | | | | Fixes: http://tracker.ceph.com/issues/22200 Signed-off-by: Jason Dillaman <dillaman@redhat.com>
* rbd: adding newline operation when only '--format' usedsongweibin2017-08-181-1/+1
| | | | Signed-off-by: songweibin <song.weibin@zte.com.cn>
* rbd: return error if we specified a wrong image name for rbd duDongsheng Yang2016-09-181-0/+6
| | | | Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
* rbd: disk usage now includes all snapshots by defaultJason Dillaman2016-04-281-5/+27
| | | | | | | Added a new "--from-snap" optional to restrict the calculation to specific subsets of snapshots and the HEAD revision. Signed-off-by: Jason Dillaman <dillaman@redhat.com>
* rbd: add support for relaxed image spec validationJason Dillaman2016-04-141-1/+1
| | | | | | | | Operations which create images or snapshots still fully enforce the spec validation. All other operations use a relaxed validation format. Signed-off-by: Jason Dillaman <dillaman@redhat.com>
* DiskUsage: close formatter session on error exitxiexingguo2015-11-261-6/+8
| | | | Fixes: #13711 Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
* rbd: migrated existing command logic to new namespacesJason Dillaman2015-11-051-0/+208
| | | | | | | No logic changes were introduced during the migration, only syntax changes were necessary. Signed-off-by: Jason Dillaman <dillaman@redhat.com>
* rbd: stub versions of all existing CLI commandsJason Dillaman2015-11-051-0/+60
All existing CLI command processing has been stubbed out using the new self-registering command implementation. Signed-off-by: Jason Dillaman <dillaman@redhat.com>