Project

General

Profile

Actions

Bug #16668

closed

client: nlink count is not maintained correctly

Added by Greg Farnum almost 8 years ago. Updated over 7 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Correctness/Safety
Target version:
-
% Done:

0%

Source:
Development
Tags:
Backport:
jewel
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
Client, Common/Protocol, MDS
Labels (FS):
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Frank reported in #ceph-devel that we don't seem to update nlink correctly from the Client. Looking through the source, we don't appear to ever change nlink except in response to an update from the MDS — which we only accept if we don't have CEPH_CAP_LINK_EXCL.
But we often do have CEPH_CAP_LINK_EXCL on files we've created, and if we unlink them we expect to see that reflected in the link count. We could try and maintain nlink ourselves, but that's somewhat odd since we have to route unlinks through the MDS anyway. That makes me think we should just let the MDS maintain nlink, and accept what it tells us.

...but that seems really odd since we have a cap for covering link count. Maybe we really only care about it for the associated inode locks on the MDS?


Related issues 1 (0 open1 closed)

Copied to CephFS - Backport #16946: jewel: client: nlink count is not maintained correctlyResolvedLoïc DacharyActions
Actions

Also available in: Atom PDF