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

Also available in: Atom PDF