go-ceph/cephfs/admin/volume.go

12 lines
301 B
Go
Raw Normal View History

// +build !luminous,!mimic
package admin
var listVolumesCmd = []byte(`{"prefix":"fs volume ls"}`)
// ListVolumes return a list of volumes in this Ceph cluster.
func (fsa *FSAdmin) ListVolumes() ([]string, error) {
r, s, err := fsa.rawMgrCommand(listVolumesCmd)
return parseListNames(r, s, err)
}