[GH-ISSUE #2108] Echo command response no erro but failed when s3fs mounted storage volume is full #1072

Closed
opened 2026-03-04 01:51:09 +03:00 by kerem · 1 comment
Owner

Originally created by @creeew on GitHub (Feb 10, 2023).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/2108

Additional Information

Version of s3fs being used (s3fs --version)

V1.91

Version of fuse being used (pkg-config --modversion fuse, rpm -qi fuse or dpkg -s fuse)

2.9.2

Kernel information (uname -r)

4.19.113-300.el7.x86_64

GNU/Linux Distribution, if applicable (cat /etc/os-release)

CentOS7

How to run s3fs, if applicable

s3fs vol-full /mnt -o passwd_file=/sf/data/local/.passwd-s3fs -o use_path_request_style -o url=http://x.x.x.x:9000 -o curldbg -d -f

Details about issue

Using echo command to create new file when the mounted storage is full, the echo command return successfully with no error.
But using touch command to create new file will retrun error message: touch: failed to close ‘new_file’: Input/output error when mounted storage is full.
We are looking forward to echo command could return error msg when storage is full.

Reproduce

echo failed but no error return:
echo "new file content" > echo_new_file_name

touch failed with error return:
touch touch_new_file
touch: failed to close ‘touch_new_file’: Input/output error

Originally created by @creeew on GitHub (Feb 10, 2023). Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/2108 <!-- -------------------------------------------------------------------------- The following information is very important in order to help us to help you. Omission of the following details may delay your support request or receive no attention at all. Keep in mind that the commands we provide to retrieve information are oriented to GNU/Linux Distributions, so you could need to use others if you use s3fs on macOS or BSD. --------------------------------------------------------------------------- --> ### Additional Information #### Version of s3fs being used (`s3fs --version`) V1.91 #### Version of fuse being used (`pkg-config --modversion fuse`, `rpm -qi fuse` or `dpkg -s fuse`) 2.9.2 #### Kernel information (`uname -r`) 4.19.113-300.el7.x86_64 #### GNU/Linux Distribution, if applicable (`cat /etc/os-release`) CentOS7 #### How to run s3fs, if applicable s3fs vol-full /mnt -o passwd_file=/sf/data/local/.passwd-s3fs -o use_path_request_style -o url=http://x.x.x.x:9000 -o curldbg -d -f ### Details about issue Using echo command to create new file when the mounted storage is full, the echo command return successfully with no error. But using touch command to create new file will retrun error message: **touch: failed to close ‘new_file’: Input/output error** when mounted storage is full. We are looking forward to echo command could return error msg when storage is full. ### Reproduce echo failed but no error return: `echo "new file content" > echo_new_file_name` touch failed with error return: `touch touch_new_file` _touch: failed to close ‘touch_new_file’: Input/output error_
kerem closed this issue 2026-03-04 01:51:09 +03:00
Author
Owner

@ggtakec commented on GitHub (Feb 18, 2023):

@creeew
I tried this, but the echo command(redirect) as well as the touch command output the same error as below.

$ echo "test" > testfile
  bash: testfile: Input/output error

The s3fs log output at this time is as follows.

[ERR] fdcache.cpp:MakeCachePath(195): failed to create dir(/testfile) by errno(28).

Errorno 28 means ENOSPC: No space left on device, and I think it correctly recognizes the lack of space.

I don't know why this error didn't occur in your box, but I have confirmed that the above error occurs regardless of the command when the disk space is insufficient, so please check your environment.

This issue will be closed, but please reopen it if the problem persists.

<!-- gh-comment-id:1435478527 --> @ggtakec commented on GitHub (Feb 18, 2023): @creeew I tried this, but the `echo` command(redirect) as well as the `touch` command output the same error as below. ``` $ echo "test" > testfile bash: testfile: Input/output error ``` The s3fs log output at this time is as follows. ``` [ERR] fdcache.cpp:MakeCachePath(195): failed to create dir(/testfile) by errno(28). ``` Errorno `28` means `ENOSPC: No space left on device`, and I think it correctly recognizes the lack of space. I don't know why this error didn't occur in your box, but I have confirmed that the above error occurs regardless of the command when the disk space is insufficient, so please check your environment. This issue will be closed, but please reopen it if the problem persists.
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#1072
No description provided.