[PR #2330] [MERGED] Simplify the determination of the --cached option of the stat #2481

Closed
opened 2026-03-04 02:05:47 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/s3fs-fuse/s3fs-fuse/pull/2330
Author: @ggtakec
Created: 9/24/2023
Status: Merged
Merged: 9/24/2023
Merged by: @gaul

Base: masterHead: simplify_statopt


📝 Commits (1)

  • e08ea81 Simplify the determination of the --cached option of the stat

📊 Changes

1 file changed (+3 additions, -9 deletions)

View changed files

📝 test/test-utils.sh (+3 -9)

📄 Description

Relevant Issue (if applicable)

#2319

Details

Change the judgment statement for whether the stat command has the --cached option.

This is determined based on the OS and version, but this method may require further modifications in the future.
Therefore, I changed it to simply check the result of stat --cached=never.
(My comment in #2319 was not simplified, so this is a correction)


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/s3fs-fuse/s3fs-fuse/pull/2330 **Author:** [@ggtakec](https://github.com/ggtakec) **Created:** 9/24/2023 **Status:** ✅ Merged **Merged:** 9/24/2023 **Merged by:** [@gaul](https://github.com/gaul) **Base:** `master` ← **Head:** `simplify_statopt` --- ### 📝 Commits (1) - [`e08ea81`](https://github.com/s3fs-fuse/s3fs-fuse/commit/e08ea814de1b3322234aede9e079c34dc12f3d37) Simplify the determination of the --cached option of the stat ### 📊 Changes **1 file changed** (+3 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `test/test-utils.sh` (+3 -9) </details> ### 📄 Description ### Relevant Issue (if applicable) #2319 ### Details Change the judgment statement for whether the `stat` command has the `--cached` option. This is determined based on the `OS` and `version`, but this method may require further modifications in the future. Therefore, I changed it to simply check the result of `stat --cached=never`. (My comment in #2319 was not simplified, so this is a correction) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-04 02:05:47 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/s3fs-fuse#2481
No description provided.