Bug #39010 » untitled.diff
drivers/block/rbd.c | ||
---|---|---|
goto err;
|
||
}
|
||
|
||
/* snapshot mounts are readonly, so don't allow discards */
|
||
if (rbd_dev->spec->snap_id == CEPH_NOSNAP && op_type == OBJ_OP_DISCARD) {
|
||
result = -EBADF;
|
||
goto err;
|
||
}
|
||
|
||
/* Ignore/skip any zero-length requests */
|
||
|
||
if (!length) {
|
||
-
|
- « Previous
- 1
- 2
- Next »