mirror of
https://github.com/ceph/ceph
synced 2025-03-11 02:39:05 +00:00
ReplicatedPG: update zero and truncate to only disallow aligned append pools
Signed-off-by: Samuel Just <sjust@redhat.com>
This commit is contained in:
parent
b237321bda
commit
126ada4749
@ -5276,7 +5276,7 @@ int ReplicatedPG::do_osd_ops(OpContext *ctx, vector<OSDOp>& ops)
|
||||
|
||||
case CEPH_OSD_OP_ZERO:
|
||||
tracepoint(osd, do_osd_op_pre_zero, soid.oid.name.c_str(), soid.snap.val, op.extent.offset, op.extent.length);
|
||||
if (pool.info.require_rollback()) {
|
||||
if (pool.info.requires_aligned_append()) {
|
||||
result = -EOPNOTSUPP;
|
||||
break;
|
||||
}
|
||||
@ -5333,7 +5333,7 @@ int ReplicatedPG::do_osd_ops(OpContext *ctx, vector<OSDOp>& ops)
|
||||
|
||||
case CEPH_OSD_OP_TRUNCATE:
|
||||
tracepoint(osd, do_osd_op_pre_truncate, soid.oid.name.c_str(), soid.snap.val, oi.size, oi.truncate_seq, op.extent.offset, op.extent.length, op.extent.truncate_size, op.extent.truncate_seq);
|
||||
if (pool.info.require_rollback()) {
|
||||
if (pool.info.requires_aligned_append()) {
|
||||
result = -EOPNOTSUPP;
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user