Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 96371
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T23:48:15+00:00 2026-05-10T23:48:15+00:00

I am using statfs() which gives me the free blocks available to a non-superuser.

  • 0

I am using statfs() which gives me the free blocks available to a non-superuser.

I am unsure how to convert this into KB/MB/GB.

The values that are returned are:

fundamental file system block size: 4096 total data blocks in file system: 3805452 free blocks in fs: 63425 free blocks avail to non-superuser: 63425 total file nodes in file system: 3805450 free file nodes in fs: 63425 

The value I am interested is saying 63425, but I am not sure what that means KB/MB/GB wise.

I am running this on the iPhone and an application is supposed to have access to 2GB I believe, if that much is open on the device, which in my case I do.

So I should be getting a value somewhere around 2G, I would think.

I ran 63425 against an online blocks to MB converter but that gives me a result of 30MB which shouldn’t be the case.

Can anyone help me in figuring out how to get KB/MB/GB from this info?

Thanks.

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T23:48:16+00:00Added an answer on May 10, 2026 at 11:48 pm

    Block size is 4096 bytes, or 4KB. Thus 63425 blocks is 63425 * 4KB = 253,700KB, which is roughly 248MB.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Java newbie here. I am using a third party library which gives me a
Joe Duffy states in the MSDN article Using concurrency for scalability that the cost
I'm trying to make a feature in a product which gives the user the
I have a problem with my Apache Axis 1.4 service, using the SOAPMonitor which
I am developing one console application using perl script. In that I am printing
I am using Lear's implementation of the Gist descriptor for a project which can
I am making a feedback form for my website using php, I thought that
I am using facebook plugin to login and logout a user, which are working
I'm trying to compile this program using MinGW on Windows 7. On my first
I have the following code, which I am using to test how I'm using

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.