Project

General

Profile

Actions

Bug #6926

closed

rbd: diff output includes previously non-existent objects as zeroed extents

Added by Josh Durgin over 10 years ago. Updated over 9 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
% Done:

0%

Source:
Community (user)
Tags:
Backport:
Regression:
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

For objects that exist in the current image, but did not in previous snapshots, extra 'zero' extents are listed.

To reproduce:

$ rbd create -s 10 img
$ rbd snap create img@snap1
$ rbd diff img@snap1
$ rbd bench-write --io-total 1 img
bench-write  io_size 4096 io_threads 16 bytes 1 pattern seq
  SEC       OPS   OPS/SEC   BYTES/SEC
elapsed:     0  ops:       16  ops/sec:   455.15  bytes/sec: 116519.22
$ rbd diff img@snap1
Offset Length Type 
0      4096   zero

The extents are listed as zeroes with the size of the now-existing object.

Actions

Also available in: Atom PDF