Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,10 @@ class CephPrimaryStorageSpec extends PrimaryStorageSpec {
def cmd = JSONObjectUtil.toObject(e.body, CephPrimaryStorageBase.GetVolumeSnapInfosCmd.class)
VFS vfs = vfs(cmd, spec)
String vfsPath = cephPathToVFSPath(cmd.volumePath)
vfs.Assert(vfs.exists(vfsPath), "cannot find the volume[${cmd.volumePath}]")
if (!vfs.exists(vfsPath)) {
rsp.setSnapInfos(new ArrayList<CephPrimaryStorageBase.SnapInfo>())
return rsp
}
List<VFSFile> files = getSnapshotPaths(vfs, vfsPath)

rsp.setSnapInfos(new ArrayList<CephPrimaryStorageBase.SnapInfo>())
Expand Down