Bug #55253
client: switch to glibc's STATX macros
% Done:
0%
Source:
Tags:
Backport:
quincy,pacific
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
Client, libcephfs
Labels (FS):
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
Currently the glibc has support the STATX macros:
define AT_STATX_SYNC_TYPE 0x6000 define AT_STATX_SYNC_AS_STAT 0x0000 define AT_STATX_FORCE_SYNC 0x2000 define AT_STATX_DONT_SYNC 0x4000
And from the posix and the initial statx supporting commit comments,
the AT_STATX_DONT_SYNC is a lightweight stat flag and the
AT_STATX_FORCE_SYNC is a heaverweight one. And also checked all
the other current usage about these two flags they are all doing
the same, that is only when the AT_STATX_FORCE_SYNC is not set
and the AT_STATX_DONT_SYNC is set will they skip sync retriving
the attributes from storage.
More detail please see https://lore.kernel.org/all/147938970382.13574.11581172952175034619.stgit@warthog.procyon.org.uk/.
Related issues
History
#1 Updated by Xiubo Li almost 2 years ago
- Pull request ID set to 45844
#2 Updated by Xiubo Li almost 2 years ago
- Description updated (diff)
#3 Updated by Xiubo Li almost 2 years ago
- Status changed from New to Fix Under Review
- Assignee set to Xiubo Li
#4 Updated by Xiubo Li almost 2 years ago
- Related to Bug #55254: kclient: fix statx AT_STATX_DONT_SYNC vs AT_STATX_FORCE_SYNC check added
#5 Updated by Jos Collin almost 2 years ago
- Status changed from Fix Under Review to Pending Backport
#6 Updated by Backport Bot almost 2 years ago
- Copied to Backport #55993: pacific: client: switch to glibc's STATX macros added
#7 Updated by Backport Bot almost 2 years ago
- Copied to Backport #55994: quincy: client: switch to glibc's STATX macros added
#8 Updated by Xiubo Li over 1 year ago
- Status changed from Pending Backport to Resolved