mirror of
https://github.com/ceph/ceph
synced 2025-02-23 19:17:37 +00:00
librbd: return -ENOENT from diff_iterate when the snap doesn't exist
This is a bit more helpful than -EINVAL. Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
This commit is contained in:
parent
6a04a7fa56
commit
33d1a2fc88
@ -2315,7 +2315,7 @@ reprotect_and_return_err:
|
||||
ictx->snap_lock.put_read();
|
||||
ictx->md_lock.put_read();
|
||||
if (from_snap_id == CEPH_NOSNAP) {
|
||||
return -EINVAL;
|
||||
return -ENOENT;
|
||||
}
|
||||
if (from_snap_id == end_snap_id) {
|
||||
// no diff.
|
||||
|
Loading…
Reference in New Issue
Block a user