[GH-ISSUE #497] diskspace issue #278

Closed
opened 2026-03-04 01:43:58 +03:00 by kerem · 5 comments
Owner

Originally created by @vgadhadaran on GitHub (Nov 16, 2016).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/497

[CRT] s3fs.cpp:set_s3fs_log_level(253): change debug level from [CRT] to [INF]
[INF] s3fs.cpp:set_moutpoint_attribute(4151): PROC(uid=0, gid=0) - MountPoint(uid=0, gid=0, mode=40755)
s3fs: There is no enough disk space for used as cache(or temporary) directory by s3fs.

I am getting the error although I have enough disk space. S3testdemo1 has around 300gb free space and my /tmp/nav folder has 50g of free space.. what should be the work around?

Originally created by @vgadhadaran on GitHub (Nov 16, 2016). Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/497 [CRT] s3fs.cpp:set_s3fs_log_level(253): change debug level from [CRT] to [INF] [INF] s3fs.cpp:set_moutpoint_attribute(4151): PROC(uid=0, gid=0) - MountPoint(uid=0, gid=0, mode=40755) s3fs: There is no enough disk space for used as cache(or temporary) directory by s3fs. I am getting the error although I have enough disk space. S3testdemo1 has around 300gb free space and my /tmp/nav folder has 50g of free space.. what should be the work around?
kerem closed this issue 2026-03-04 01:43:59 +03:00
Author
Owner

@gaul commented on GitHub (Nov 20, 2016):

Can you add some logging to FdManager::IsSafeDiskSpace so we can diagnose this further?

<!-- gh-comment-id:261754204 --> @gaul commented on GitHub (Nov 20, 2016): Can you add some logging to `FdManager::IsSafeDiskSpace` so we can diagnose this further?
Author
Owner

@ggtakec commented on GitHub (Jan 7, 2017):

@vgadhadaran I'm sorry for my late reply,
And Thanks @andrewgaul

s3fs checks free disk space at starting by using statvfs function.
So you do not specify use_cache option, s3fs checks free disk space by "/tmp/" path.
It seems that this result is false, thus statvfs result is under 10MB.

Could you add the debugging codes in FdManager::GetFreeDiskSpace() in fdcache.cpp?
(or in FdManager::IsSafeDiskSpace() function, andrewgaul said.)

Thanks in advance for your help.

<!-- gh-comment-id:271070714 --> @ggtakec commented on GitHub (Jan 7, 2017): @vgadhadaran I'm sorry for my late reply, And Thanks @andrewgaul s3fs checks free disk space at starting by using statvfs function. So you do not specify use_cache option, s3fs checks free disk space by "/tmp/" path. It seems that this result is false, thus statvfs result is under 10MB. Could you add the debugging codes in FdManager::GetFreeDiskSpace() in fdcache.cpp? (or in FdManager::IsSafeDiskSpace() function, andrewgaul said.) Thanks in advance for your help.
Author
Owner

@vgadhadaran commented on GitHub (Jan 30, 2017):

s3fs: There is no enough disk space for used as cache(or temporary) directory by s3fs.

I had plenty of disk space. In this case, /tmp/s3fs_cache didn't exist. When I created it, the mount worked fine.

  1. Even though I didnt set use_cache option, where does it points to the temp directory , as it prompts there is no enough disk space?

  2. Adding this line in fdcache.cpp will be sufficient

FdManager::InitEnsureFreeDiskSpace();
if(!FdManager::IsSafeDiskSpace(NULL, S3fsCurl::GetMultipartSize())){
S3FS_PRN_EXIT("There is no enough disk space for used as cache(or temporary) directory by s3fs.");
exit(EXIT_FAILURE);
}

  1. Is there any command parameters that I can pass on with s3fs command for diskspace?
<!-- gh-comment-id:276168508 --> @vgadhadaran commented on GitHub (Jan 30, 2017): s3fs: There is no enough disk space for used as cache(or temporary) directory by s3fs. I had plenty of disk space. In this case, /tmp/s3fs_cache didn't exist. When I created it, the mount worked fine. 1. Even though I didnt set use_cache option, where does it points to the temp directory , as it prompts there is no enough disk space? 2. Adding this line in fdcache.cpp will be sufficient FdManager::InitEnsureFreeDiskSpace(); if(!FdManager::IsSafeDiskSpace(NULL, S3fsCurl::GetMultipartSize())){ S3FS_PRN_EXIT("There is no enough disk space for used as cache(or temporary) directory by s3fs."); exit(EXIT_FAILURE); } 3. Is there any command parameters that I can pass on with s3fs command for diskspace?
Author
Owner

@ggtakec commented on GitHub (Apr 9, 2017):

@vgadhadaran I'm sorry fore my late reply.

  1. when does not specify use_cache option, default path is /tmp
  2. we changed codes about checking free disk space recently, #557.
    so please try to use latest version on mster branch.
  3. ensure_diskfree option.

I am sorry to have trouble, if you can please retry to use latest codes.
Thanks in advance for your assistance.

<!-- gh-comment-id:292787617 --> @ggtakec commented on GitHub (Apr 9, 2017): @vgadhadaran I'm sorry fore my late reply. 1. when does not specify use_cache option, default path is /tmp 2. we changed codes about checking free disk space recently, #557. so please try to use latest version on mster branch. 3. ensure_diskfree option. I am sorry to have trouble, if you can please retry to use latest codes. Thanks in advance for your assistance.
Author
Owner

@ggtakec commented on GitHub (Mar 30, 2019):

We kept this issue open for a long time.
Is this problem continuing?
We launch new version 1.86, which fixed some problem(bugs).
Please use the latest version.
I will close this, but if the problem persists, please reopen or post a new issue.

<!-- gh-comment-id:478220473 --> @ggtakec commented on GitHub (Mar 30, 2019): We kept this issue open for a long time. Is this problem continuing? We launch new version 1.86, which fixed some problem(bugs). Please use the latest version. I will close this, but if the problem persists, please reopen or post a new issue.
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#278
No description provided.