[PR #37] [MERGED] Added support for path API request style. #1323

Closed
opened 2026-03-04 01:53:23 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/s3fs-fuse/s3fs-fuse/pull/37
Author: @Andrew-Dunn
Created: 6/3/2014
Status: Merged
Merged: 6/3/2014
Merged by: @ggtakec

Base: masterHead: path-request-style


📝 Commits (1)

  • 601482e Added support for path API request style.

📊 Changes

4 files changed (+28 additions, -8 deletions)

View changed files

📝 src/common.h (+1 -0)
📝 src/s3fs.cpp (+5 -0)
📝 src/s3fs_util.cpp (+10 -5)
📝 src/string_util.cpp (+12 -3)

📄 Description

Rather than using virtual host style requests, path style requests can be used
instead.

i.e. rather than bucketname.s3.amazon.com/... the s3fs will be able to request
from s3.amazon.com/bucketname/...

This is useful for S3 compatible APIs which don't support the virtual host style
request.

It is enabled with the new option, use_path_style_request.

It would resolve issue #34.

Usage example:
/usr/bin/s3fs data ~/netcdf -o url="https://swift.rc.nectar.org.au:8888/" -o use_path_request_style -o allow_other -o uid=500 -o gid=500

🔄 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/37 **Author:** [@Andrew-Dunn](https://github.com/Andrew-Dunn) **Created:** 6/3/2014 **Status:** ✅ Merged **Merged:** 6/3/2014 **Merged by:** [@ggtakec](https://github.com/ggtakec) **Base:** `master` ← **Head:** `path-request-style` --- ### 📝 Commits (1) - [`601482e`](https://github.com/s3fs-fuse/s3fs-fuse/commit/601482eff55094a49cab984f7d4360792f5a7164) Added support for path API request style. ### 📊 Changes **4 files changed** (+28 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `src/common.h` (+1 -0) 📝 `src/s3fs.cpp` (+5 -0) 📝 `src/s3fs_util.cpp` (+10 -5) 📝 `src/string_util.cpp` (+12 -3) </details> ### 📄 Description Rather than using virtual host style requests, path style requests can be used instead. i.e. rather than **bucketname**.s3.amazon.com/... the s3fs will be able to request from s3.amazon.com/**bucketname**/... This is useful for S3 compatible APIs which don't support the virtual host style request. It is enabled with the new option, `use_path_style_request`. It would resolve issue #34. ##### Usage example: ``` /usr/bin/s3fs data ~/netcdf -o url="https://swift.rc.nectar.org.au:8888/" -o use_path_request_style -o allow_other -o uid=500 -o gid=500 ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-04 01:53:23 +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#1323
No description provided.