Project

General

Profile

Actions

Bug #3043

open

Relax restriction on zfs_ioc_next_obj() iteration

Added by Chip Schweiss almost 11 years ago. Updated 11 months ago.

Status:
In Progress
Priority:
Normal
Assignee:
Category:
zfs - Zettabyte File System
Start date:
2012-07-30
Due date:
% Done:

0%

Estimated time:
Difficulty:
Bite-size
Tags:
needs-triage
Gerrit CR:
External Bug:

Description

Assuming we should expect the same functionality as on Solaris files that are removed between snapshots should be listed with a '-'.

Currently a 'zfs diff' will only show the directory as modified that had a file removed. There will be no listing of the file that was removed.

Actions #1

Updated by Daniil Lunev almost 11 years ago

root@Exile:# zfs diff rpool/test@m1
M /rpool/test/mk
- /rpool/test/mk/testf

It seems to work as you have described.

Actions #2

Updated by Chip Schweiss almost 11 years ago

I'm working on OpenIndiana 151a4 and no deleted files or directories are showing up in zfs diff.

I will upgrade 151a5 and report back.

Would this be an OI or Illumos bug?

Actions #3

Updated by Chip Schweiss almost 11 years ago

Upgraded to 151a5 and the problem is fixed.

Sorry for reporting an already fixed bug.

Actions #4

Updated by Daniil Lunev almost 11 years ago

I have tested it with OI 151a5. Also, I have looked through the latest illumos-gate sources and it seems to show deleted files too.

Actions #5

Updated by Yuri Pankov almost 11 years ago

  • Status changed from New to Closed
Actions #6

Updated by B T almost 9 years ago

  • Status changed from Closed to Feedback

I believe this should be reopened. See this bug in zfsonlinux:
https://github.com/zfsonlinux/zfs/issues/2081

On OI 151a8, the commands below (copied from here ) produce the same incorrect result:

root@host:/% zfs create tank/test
root@host:/% cd /tank/test
root@host:/tank/test% touch a
root@host:/tank/test% zfs snapshot tank/test@1
root@host:/tank/test% zfs snapshot tank/test@2
root@host:/tank/test% rm a
root@host:/tank/test% zfs diff tank/test@1
M       /tank/test/
-       /tank/test/a
root@host:/tank/test% zfs diff tank/test@2
M       /tank/test/
root@host:/tank/test%
Actions #7

Updated by Marcel Telka 11 months ago

  • Status changed from Feedback to In Progress
  • Assignee set to Marcel Telka
  • Difficulty changed from Medium to Bite-size

B T wrote in #note-6:

On OI 151a8, the commands below (copied from here ) produce the same incorrect result:

[...]

I just tested it with illumos-da37308cbe (about a week old) and the issue is still reproducible using the steps provided.

Actions #8

Updated by Marcel Telka 11 months ago

  • Subject changed from zfs diff does not report removed files to Relax restriction on zfs_ioc_next_obj() iteration
Actions

Also available in: Atom PDF