Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reopen: zfs diff shows original file as deleted when hard link to file is created and deleted between diff points #13283 #16753

Open
krisjwebb opened this issue Nov 14, 2024 · 0 comments
Labels
Type: Defect Incorrect behavior (e.g. crash, hang)

Comments

@krisjwebb
Copy link

System information

Type Linux
Distribution Name Ubuntu
Distribution Version 22.04
Kernel Version 6.8.0-48-generic
Architecture x86_64
OpenZFS Version zfs-2.1.5-1ubuntu6~22.04.4

Describe the problem you're observing

Create a file in one directory (file1) and take a snapsot. Then hard link it to a file another directory (file2) and remove file2.
zfs diff reports the original file1 as deleted instead of file2.

Describe how to reproduce the problem

zfs create pool1/test-dataset
cd test-dataset
mkdir src dest
cd src
echo "this is a file" >file1
zfs snapshot pool1/test-dataset@snap1
cd ../dest
ln ../src/file2
rm file2
zfs diff pool1/test-dataset@snap1 pool1/test-dataset
M /mnt/pool1/test-dataset/dest
- /mnt/pool1/test-dataset/src/file1

Include any warning/errors/backtraces from the system logs

@krisjwebb krisjwebb added the Type: Defect Incorrect behavior (e.g. crash, hang) label Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Defect Incorrect behavior (e.g. crash, hang)
Projects
None yet
Development

No branches or pull requests

1 participant