Hunting #1472.
Signed-off-by: Sage Weil <sage@newdream.net>
if (in.is_freezing_inode()) out << " FREEZING=" << in.auth_pin_freeze_allowance;
if (in.is_frozen_inode()) out << " FROZEN";
+ inode_t *pi = in.get_projected_inode();
+ if (pi->is_truncating())
+ out << " truncating(" << pi->truncate_from << " to " << pi->truncate_size << ")";
+
// anchors
if (in.is_anchored())
out << " anc";
<< pi->truncate_from << " -> " << pi->truncate_size
<< " on " << *in << dendl;
+ assert(pi->is_truncating());
+
in->auth_pin(this);
SnapRealm *realm = in->find_snaprealm();
bool is_truncating() const { return (truncate_pending > 0); }
void truncate(uint64_t old_size, uint64_t new_size) {
+ assert(new_size < old_size);
truncate_from = old_size;
size = new_size;
rstat.rbytes = new_size;