Zavřít
Enter Follow us

3S.cz

Specialized Section

S3FS: When Object Storage Starts Acting Like a File System

02.12.2026, 18:20

What if a Linux application did not need to know that its data was stored in S3 object storage? That is exactly what S3FS makes possible: it exposes objects as regular files, giving applications the familiar environment of reading, writing, and working with a file system.rnrnBehind this seemingly simple integration, however, lies an interesting technical story. A change in S3FS disrupted compatibility with certain on-premises storage systems, including Hitachi Content Platform. Let’s take a closer look at why this happened, how the issue manifested itself, and what the fix introduced in version 1.97 achieved.

 

Object storage has become an important part of enterprise IT infrastructure. Its key advantages include scalability, efficient storage of large volumes of data, and a standardized S3 interface.

However, not all applications can work directly with S3. This is where the S3FS project comes in. It makes objects accessible through the standard Linux file system.

Despite being a reliable integration tool for many years, in 2024 it began to encounter compatibility issues with certain enterprise object storage systems. The cause was a seemingly minor code change. Thanks to technical analysis and cooperation with the open-source community, the problem was identified.

 

What is S3FS and why is it used?

The s3fs-fuse project (https://github.com/s3fs-fuse/s3fs-fuse) is an open-source file system implementation based on FUSE (Filesystem in Userspace). It allows a remote S3 bucket to be mounted in the local Linux directory tree. From an application's perspective, object storage therefore appears to be an ordinary directory on a disk.

Imagine an application that expects data to be available in the `/data/archive` directory. Traditionally, this directory could reside on a local disk, a disk array, or a file storage system mounted over NFS or SMB. S3FS makes it possible to connect this directory to a remote object bucket. The application can continue using standard system calls such as `open`, `read`, `write`, `stat`, or `readdir`. S3FS translates these requests into corresponding operations through the S3 API.

 

How does the integration work?

S3FS therefore acts as a translation layer between two different worlds:

  • The file system world: works with files, directories, owners, access permissions, timestamps, and POSIX system calls.
  • The object storage world: works with objects identified by keys, metadata, and operations performed through a remote S3 API.

Importantly, S3FS does not introduce any proprietary data format of its own. The data remains stored as standard objects that can also be accessed using other S3 clients, SDKs, or custom applications.

It is important to emphasize, however, that S3FS does not turn object storage into a fully fledged block or file system. Random overwrites of parts of a file may require more extensive operations on the object, metadata operations are affected by network latency, and concurrent writes require appropriate application-level coordination.

S3FS is therefore primarily an integration tool. Its greatest benefit is that it makes object storage usable even in environments where modifying existing applications is either impossible or economically impractical.

 

Where is S3FS used?

The usefulness of S3FS is not merely theoretical. There are several documented implementations in which it serves as a link between object storage and existing applications.

  • IBM: Object storage for analytics applications: this involves using S3FS in a deep learning environment. The technical paper Keeping Deep Learning GPUs Well Fed Using Object Storage describes an architecture in which S3FS translates POSIX requests into REST requests directed at object storage.
  • Scientific research and large datasets: The US research infrastructure OSiRIS (Open Storage Research Infrastructure for Science) documents the use of S3FS to mount object storage buckets as regular file systems. Researchers can therefore work with data using familiar Linux tools without having to modify their applications or data formats.
  • The Czech context – archival and media data: In the Czech environment, this integration approach is particularly relevant to organizations working with large multimedia archives. Czech Radio is a typical example. Working with extensive collections of audio recordings creates a need to make data stored in object storage accessible to applications that expect a conventional file system structure. The internal use of S3FS libraries and other integration tools makes it possible to bridge the gap between object storage and file-based access.

 

When compatibility stops being compatible

The long-term usability of S3FS was based on a simple assumption: if an object storage system supports the S3 API, the S3FS client should be able to communicate with it.

In practice, however, the situation is more complicated.

S3 is not a formal Internet standard in the same sense as HTTP, which is defined through RFCs. It is an application programming interface whose structure, operations, and expected behavior were originally defined by Amazon for its Amazon S3 service. AWS documentation has gradually become the de facto reference point for other object storage vendors and providers.

We therefore speak of S3 compatibility. Vendors implement an interface intended to allow standard S3 clients to be used without having to modify their source code.

API compatibility, however, does not guarantee absolutely identical behavior in every conceivable situation. There are cases where a request is not unambiguously defined, or its interpretation depends on the specific implementation. Different systems may therefore behave differently.

This is precisely the area where the S3FS project encountered an issue.

 

The unusual HEAD // request

In 2023, a code change was introduced in the S3FS project to provide a useful enhancement. Version 1.92, released on May 21, 2023, included a change tracked as #1964. Its purpose was to add information about the file system attributes of the mount point itself.

The problem was hidden in the way S3FS attempted to retrieve this information.

When accessing the root directory of a mounted bucket, the newer implementation generated the following request:

 

HEAD /testns// HTTP/1.1

 

In this example, `testns` is the name of the bucket, or namespace, in the HCP environment.

S3FS attempts to determine whether a special object corresponding to the root directory exists in the bucket. For the root of the mounted bucket, it constructs the `//` path and issues a HEAD request. It then uses the returned HTTP headers to construct the file attributes.

This is not a standard S3 operation intended to retrieve bucket parameters. It is a specific request used by S3FS to determine the attributes of the root directory.

And this is where a gap emerged between the client's expectations and the behavior of individual server implementations.

 

Three different responses from object storage systems

When analyzing this situation, we can distinguish several ways in which S3 implementations may respond to this unusual request.

  • Option A – the request is rejected: The object storage system evaluates the request as unsupported or invalid and returns an appropriate HTTP error status. S3FS may determine that it cannot retrieve the information this way and continue using an alternative procedure.
  • Option B – the request is accepted and the expected metadata is returned: The S3 storage system returns HTTP 200 and provides the required object information in the HTTP headers. S3FS can process the response and continue.
  • Option C – the request is accepted, but the metadata is missing: The server returns HTTP 200 but does not provide the expected object information. S3FS therefore receives confirmation of success without obtaining the data it needs to continue.

The third option was problematic for the original implementation.

From an HTTP perspective, status code 200 means that the request was successfully processed. It does not automatically mean that the client received all the application-level information it expected.

One technical clarification is necessary here: the HTTP HEAD method does not normally return a response body. Metadata is conveyed through HTTP response headers. This is specified in RFC 9110 and also confirmed by the AWS documentation for the HeadObject operation. Therefore, in this case, we are talking about missing HTTP headers, not a missing response body.

The original S3FS implementation was not sufficiently robust in distinguishing between a successful HTTP request and a response that was actually usable.

The result was a failure when processing information about the root directory. Users could encounter an apparently paradoxical situation: the object storage was successfully mounted, the system could display the mounted file system, but an attempt to enter its root directory ended with an Input/output error.

This was therefore not an authentication issue, an incorrect access key, or an unavailability of the object storage itself. A relatively small but essential part of the integration logic was failing.

 

How the issue manifested itself in practice

The first publicly traceable specific case of this incompatibility with Hitachi Content Platform was recorded on GitHub on February 26, 2024.

The S3FS project had an issue ticket #2423 titled s3fs-fuse to HCP (Hitachi Content Platform) issue.

The author described a situation in which the bucket was successfully mounted at `/hcpdata`, the `df -kh` command displayed the file system, but the subsequent command failed with an error:

cd /hcpdata

-bash: cd: /hcpdata: Input/output error


The HCP audit log itself showed that the server had received both requests:

GET /testns/ 200
HEAD /testns// 200

 

This log entry confirms that HCP received the request and returned a successful HTTP status. However, the fact that the request was accepted did not necessarily mean that S3FS had obtained the metadata it needed.

Subsequent technical comparisons of different versions confirmed that a regression had occurred between older and newer implementations.

The comparison between versions 1.89 and 1.93 is particularly interesting. With the same mount configuration and in the same HCP environment, the older version 1.89 worked, while the newer version 1.93 exhibited the described error. The difference was related precisely to the new method of retrieving mount point attributes.

 

The technical solution: S3FS learned to distinguish a successful response from a usable one

From a software design perspective, the fix is elegant.

Instead of assuming that HTTP 200 automatically means that all the required information has been successfully retrieved, the newer implementation also performs more thorough checks of the HTTP headers.

Specifically, it verifies whether the response contains the identifiers and metadata required by S3FS to construct the mount point attributes.

These include in particular:

- `Content-Type`
- `x-amz-meta-uid`
- `x-amz-meta-gid`
- `x-amz-meta-mode`
- `x-amz-meta-atime`
- `x-amz-meta-ctime`
- `x-amz-meta-mtime`

 

If this information is missing, S3FS no longer treats HTTP status 200 alone as sufficient proof that it has obtained valid information about the root object.

Instead, it determines that the request did not provide usable metadata and proceeds to create default mount point attributes. It uses the information available from the mount point configuration, such as the owner, group, and access permissions.

This is the key difference compared to the original behavior: S3FS is no longer blocked by a response that is successful from an HTTP perspective but incomplete from the perspective of its own logic.

 

When exactly was the fix released?

The following timeline can be compiled from the project's public records:

DateEvent
February 22, 2021 Release of S3FS 1.89, an older implementation without the problematic procedure for retrieving the bucket root's stat information
May 21, 2023 Release of version 1.92; change #1964 adds mount point stat information retrieval
July 19, 2023 Release of version 1.93
February 26, 2024 Public report of the HCP issue, GitHub issue #2423
February 23, 2024 Release of version 1.94
October 25, 2024 Release of version 1.95
November 24, 2025 Release of version 1.96
December 7–8, 2025 Release of S3FS 1.97 with corrected mount point metadata validation

 

The timeline highlights an important clarification: the code change that led to the regression dates back to version 1.92, released in May 2023. The year 2024 marks the first publicly documented manifestation of the issue and its reporting in connection with HCP, not the year in which the underlying change was originally introduced.

Another important milestone is version 1.97.

GitHub lists its release date as December 8, 2025. The ChangeLog is dated December 7, 2025. This is a difference between the date recorded in the ChangeLog and the date on which the release was published on GitHub.

Interestingly, the public ChangeLog for version 1.97 does not explicitly mention the rather significant reengineering of the mechanism described above. It primarily includes change #2765, which concerns the `nonempty` parameter when compiling with FUSE 3.

However, the source code of version 1.97 already contains the described validation of the required metadata and the fallback creation of default mount point attributes. This can be verified directly in the source code of version 1.97.

 

What does the fix mean for Hitachi Content Platform?

This issue has very practical significance for us. The core object storage technology behind 3S.cz's S3 Cloud is Hitachi Content Platform (HCP).

HCP is a long-established enterprise object storage platform that provides an S3-compatible interface. In the Czech Republic, it is used by a number of customers to store and access large volumes of data.

The ability to mount HCP through S3FS expands the ways in which this data can be used. In addition to direct access through the S3 API, organizations can also make stored objects accessible through the Linux file system interface.

Thanks to the fix in S3FS 1.97, this integration method can once again be used in Hitachi Content Platform environments without the described error when accessing the bucket's root directory.

 

The contribution of our own technical work

This case was also an interesting experience for us from the perspective of technical support and open-source software development.

We did not stop at simply establishing that a particular combination of software and storage was not working. It was necessary to compare the behavior of different S3FS versions, analyze HTTP communication, examine HCP audit logs, and then trace the issue back to a specific change in the source code.

It was precisely the combination of knowledge of object storage, its S3 interface, and the internal workings of S3FS that made it possible to identify the problem more precisely.

Our technical work contributed to investigating the issue, reproducing it, and documenting it. We also recorded the results of our analysis in the S3FS project on GitHub, including the technical case #2974 – Regression from v1.89 to v1.93 with Hitachi Content Platform.

It is important to distinguish between our contribution to the diagnosis and the actual implementation of the fix, which is part of the upstream S3FS project. This is not a custom version of the library developed by us, but the use of the corrected official release.

 

Conclusion: S3 compatibility is more than just an S3 logo

This story illustrates an important characteristic of today's IT infrastructure.

The fact that two products support the same API does not automatically mean that they will behave in exactly the same way in every situation. Differences often become apparent only in edge cases that are not covered by standard test scenarios.

S3FS is a good example of a project whose value goes far beyond its technical implementation. It makes it possible to connect modern object storage systems with applications that were developed in an entirely different technological era. Such integration layers are essential for the gradual modernization of IT environments without having to replace all existing applications.

For 3S.cz customers, the important point is that Hitachi Content Platform object storage remains accessible through the standard S3 API and that a proven integration method using S3FS is also available.

Since December 2025, an official version of S3FS has been available whose source code includes a fix for the described issue.

For us, this also confirms that it is worth investing time not only in operating the infrastructure itself, but also in detailed compatibility analysis, cooperation with the developer community, and finding solutions that benefit the entire object storage ecosystem.

The issue has been technically investigated, its root cause documented, and a solution available in the project's official distribution has been adopted. The result is not merely a fix for one specific scenario, but also more robust S3FS behavior when communicating with different S3-compatible storage systems.