Project

General

Profile

Actions

Bug #221

closed

Deleting files can cause empty snapshots of them

Added by Greg Farnum almost 14 years ago. Updated over 13 years ago.

Status:
Resolved
Priority:
High
Assignee:
-
Category:
Snapshots
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
Severity:
Reviewed:
Affected Versions:
ceph-qa-suite:
Crash signature (v1):
Crash signature (v2):

Description

Fairly simple test case, although it's possible a smaller one would work too
mount -t ceph xxx mnt/
mkdir mnt/a
mkdir mnt/a/b
cp file mnt/a/b/
mkdir mnt/a/.snap/1
rm mnt/a/b/file
rmdir mnt/a/b/
ls mnt/a/.snap
less mnt/a/.snap/1/b/file
and the file is empty.

This appears to be a race condition right now; taking a couple more seconds than I normally do in running the case results in the snapshot behaving properly.

Actions #1

Updated by Sage Weil almost 14 years ago

  • Category set to Snapshots
Actions #2

Updated by Sage Weil almost 14 years ago

  • Status changed from New to Resolved

This is fixed by commit:9795fabb63f6b6b291c1054ca578b213a6a0bf83 and commit:bef062942ad1745808287c7483478adaa0b91fc2 (was broken by commit:551a12f52e36b6becfd0cf59b7fc16c421cfbb21).

Added a qa test for this case.

Actions

Also available in: Atom PDF