Bug #3043
openRelax restriction on zfs_ioc_next_obj() iteration
0%
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.
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.
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?
Updated by Chip Schweiss almost 11 years ago
Upgraded to 151a5 and the problem is fixed.
Sorry for reporting an already fixed bug.
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.
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%
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
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
Updated Subject to match https://github.com/openzfs/zfs/commit/7290cd3c4ed19fb3f75b8133db2e36afcdd24beb