Bug #54501
openlibcephfs: client needs to update the mtime and change attr when snaps are created and deleted
0%
Description
This issue was identified by Jeff here, https://bugzilla.redhat.com/show_bug.cgi?id=1975689#c21
The libcephfs client doesn't update mtime and change attribute when snaps are create or deleted. This results in NFS clients not being able to list CephFS snapshots within a CephFS NFS-Ganesha export correctly.
See explanation here, https://bugzilla.redhat.com/show_bug.cgi?id=1975689#c21
Updated by Venky Shankar about 2 years ago
- Category set to Correctness/Safety
- Assignee set to Nikhilkumar Shelke
- Target version set to v18.0.0
- Source set to Community (dev)
- Backport set to quincy, pacific
Nikhil,
Please take this (Xiubo is be a bit tied up with some other work).
Cheers,
Venky
Updated by Venky Shankar over 1 year ago
- Assignee changed from Nikhilkumar Shelke to Dhairya Parmar
Dhairya, PTAL.
Updated by Venky Shankar over 1 year ago
- Assignee changed from Dhairya Parmar to Venky Shankar
Updated by Venky Shankar over 1 year ago
Assigning this to myself since I'm looking into related issues.
Updated by Venky Shankar over 1 year ago
Ramana, nfs-ganesh is servicing stale readdir data by checking mtime/change_attr of .snap I presume or for its parent (i.e., "foo" dir for foo/.snap)?
Updated by Venky Shankar over 1 year ago
Ramana, never mind. I see its for .snap directory rather that its parent. The thing is, attrs for .snap are initialized from its parent and never change (until the inode is trimmed and the snap directory is accessed again).
PR https://github.com/ceph/ceph/pull/48086 improves this behavior by updating attrs (including POSIX ACLs) for .snap directory when its parent directory attrs change. However, that is not enough to fix this issue.
Updated by Venky Shankar over 1 year ago
- Status changed from New to Fix Under Review
- Pull request ID set to 48382
Updated by Venky Shankar about 1 year ago
- Status changed from Fix Under Review to Pending Backport
Updated by Backport Bot about 1 year ago
- Copied to Backport #59038: quincy: libcephfs: client needs to update the mtime and change attr when snaps are created and deleted added
Updated by Backport Bot about 1 year ago
- Copied to Backport #59039: pacific: libcephfs: client needs to update the mtime and change attr when snaps are created and deleted added
Updated by Backport Bot about 1 year ago
- Copied to Backport #59040: pacific: libcephfs: client needs to update the mtime and change attr when snaps are created and deleted added
Updated by Backport Bot about 1 year ago
- Copied to Backport #59041: quincy: libcephfs: client needs to update the mtime and change attr when snaps are created and deleted added
Updated by Venky Shankar about 1 year ago
- Tags deleted (
backport_processed) - Backport changed from quincy, pacific to reef,quincy,pacific
Updated by Backport Bot about 1 year ago
- Copied to Backport #59412: reef: libcephfs: client needs to update the mtime and change attr when snaps are created and deleted added