Project

General

Profile

Bug #39010 » untitled.diff

Cliff Pajaro, 03/28/2019 06:45 PM

View differences:

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) {
-
(2-2/2)