Updated on 2025-06-16 GMT+08:00

Introduction to obsfs

obsfs, based on Filesystem in Userspace (FUSE), is a file system tool for OBS. You can use it to mount parallel file systems to Linux operating systems. It enables you to easily access the infinite storage space on OBS in the same way as you use a local file system.

obsfs is a great option if you are used to storing data locally but your data is now stored in OBS.

Functions

  • Lets you mount a parallel file system to your local file system in Linux, so that you can manage objects stored in OBS as if they were stored locally.
  • Supports synchronous upload. Any file uploaded to the mount directory can be synchronously uploaded to OBS.
  • Synchronizes objects from a parallel file system to its mount directory in the local file system, so that you can copy, modify, rename, or truncate objects locally and they will be automatically updated in OBS.

Constraints

  • The local directory that the parallel file system will be mounted to does not need to be empty, but any files in that directory will become unavailable after the parallel file system is mounted to that directory. However, they will still be there when the parallel file system is unmounted later. To avoid any confusion this might cause, mount your parallel file system to an empty directory.
  • obsfs can be used to mount parallel file systems but not OBS buckets.
  • After an OBS parallel file system is mounted using obsfs, the newly generated mount directory cannot be used as an FTP directory.
  • A parallel file system that is mounted locally cannot provide the same performance and functions as an actual local file system. When using a mounted parallel file system, pay attention to the following points:
    • Files or folders in the mount directory do not support hard links.
    • There can be no more than 45 directory levels.
    • Since there is switching between user mode and kernel mode in FUSE, obsfs is not recommended for high-concurrency scenarios.
    • Linux commands (such as ls and stat) require remote access to the OBS server, which causes poor performance.
  • A parallel file system can be mounted to multiple cloud servers, but you need to prevent multiple servers from concurrently writing to the same file.
  • If obsfs is used to mount a parallel file system, policies and IAM policies configured for the parallel file system take effect, but those configured for directories do not take effect.

Applicable Operating Systems

obsfs is compatible with Linux. For details, see Table 1.

Table 1 Obtaining obsfs

Method

Description

Compatible Distributions

Operation Guideline

Download

Download and install the official software package and configure the environment (Linux). This method is only used for the x86 architecture.

Ubuntu 16 and CentOS 7

Downloading and Installing obsfs

Compilation

Download the source code from GitHub, configure the compilation environment, and run the script included with the source code to generate your obsfs installation package. This method can be used for both the x86 and Arm architectures.

Ubuntu 14, Ubuntu 16, Ubuntu 18, SUSE 12, CentOS 7, Fedora 28, RHEL 7, Debian 8, openSUSE Leap 42.1

Generating obsfs by Compilation