Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Fields](https://developer.android.com/reference/android/system/StructStatVfs#lfields) \| [Ctors](https://developer.android.com/reference/android/system/StructStatVfs#pubctors) \| [Methods](https://developer.android.com/reference/android/system/StructStatVfs#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/system/StructStatVfs#inhmethods)

# StructStatVfs

*** ** * ** ***

` public final class StructStatVfs `   
` extends https://developer.android.com/reference/java/lang/Object ` ` `

|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.system.StructStatVfs |

<br />

*** ** * ** ***

File information returned by `https://developer.android.com/reference/android/system/Os#fstatvfs(java.io.FileDescriptor)` and `https://developer.android.com/reference/android/system/Os#statvfs(java.lang.String)`.

## Summary

| ### Fields ||
|---|---|
| ` public final long` | `https://developer.android.com/reference/android/system/StructStatVfs#f_bavail` Free block count available to non-root. |
| ` public final long` | `https://developer.android.com/reference/android/system/StructStatVfs#f_bfree` Free block count. |
| ` public final long` | `https://developer.android.com/reference/android/system/StructStatVfs#f_blocks` Total block count. |
| ` public final long` | `https://developer.android.com/reference/android/system/StructStatVfs#f_bsize` File system block size (used for block counts). |
| ` public final long` | `https://developer.android.com/reference/android/system/StructStatVfs#f_favail` Free file (inode) count available to non-root. |
| ` public final long` | `https://developer.android.com/reference/android/system/StructStatVfs#f_ffree` Free file (inode) count. |
| ` public final long` | `https://developer.android.com/reference/android/system/StructStatVfs#f_files` Total file (inode) count. |
| ` public final long` | `https://developer.android.com/reference/android/system/StructStatVfs#f_flag` Bit mask of ST_\* flags. |
| ` public final long` | `https://developer.android.com/reference/android/system/StructStatVfs#f_frsize` Fundamental file system block size. |
| ` public final long` | `https://developer.android.com/reference/android/system/StructStatVfs#f_fsid` File system id. |
| ` public final long` | `https://developer.android.com/reference/android/system/StructStatVfs#f_namemax` Maximum filename length. |

| ### Public constructors ||
|---|---|
| ` https://developer.android.com/reference/android/system/StructStatVfs#StructStatVfs(long,%20long,%20long,%20long,%20long,%20long,%20long,%20long,%20long,%20long,%20long)(long f_bsize, long f_frsize, long f_blocks, long f_bfree, long f_bavail, long f_files, long f_ffree, long f_favail, long f_fsid, long f_flag, long f_namemax) ` Constructs an instance with the given field values. |

| ### Public methods ||
|---|---|
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/system/StructStatVfs#toString()() ` Returns a string representation of the object. |

### Inherited methods

From class ` https://developer.android.com/reference/java/lang/Object ` ` https://developer.android.com/reference/java/lang/Object` ` https://developer.android.com/reference/java/lang/Object#clone()() `

Creates and returns a copy of this object.
` boolean` ` https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) `

Indicates whether some other object is "equal to" this one.
` void` ` https://developer.android.com/reference/java/lang/Object#finalize()() `

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
` final https://developer.android.com/reference/java/lang/Class<?>` ` https://developer.android.com/reference/java/lang/Object#getClass()() `

Returns the runtime class of this `Object`.
` int` ` https://developer.android.com/reference/java/lang/Object#hashCode()() `

Returns a hash code value for the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#notify()() `

Wakes up a single thread that is waiting on this object's monitor.
` final void` ` https://developer.android.com/reference/java/lang/Object#notifyAll()() `

Wakes up all threads that are waiting on this object's monitor.
` https://developer.android.com/reference/java/lang/String` ` https://developer.android.com/reference/java/lang/Object#toString()() `

Returns a string representation of the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long,%20int)(long timeoutMillis, int nanos) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long)(long timeoutMillis) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait()() `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*.

## Fields

### f_bavail

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public final long f_bavail
```

Free block count available to non-root.

<br />

### f_bfree

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public final long f_bfree
```

Free block count.

<br />

### f_blocks

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public final long f_blocks
```

Total block count.

<br />

### f_bsize

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public final long f_bsize
```

File system block size (used for block counts).

<br />

### f_favail

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public final long f_favail
```

Free file (inode) count available to non-root.

<br />

### f_ffree

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public final long f_ffree
```

Free file (inode) count.

<br />

### f_files

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public final long f_files
```

Total file (inode) count.

<br />

### f_flag

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public final long f_flag
```

Bit mask of ST_\* flags.

<br />

### f_frsize

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public final long f_frsize
```

Fundamental file system block size.

<br />

### f_fsid

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public final long f_fsid
```

File system id.

<br />

### f_namemax

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public final long f_namemax
```

Maximum filename length.

<br />

## Public constructors

### StructStatVfs

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public StructStatVfs (long f_bsize, 
                long f_frsize, 
                long f_blocks, 
                long f_bfree, 
                long f_bavail, 
                long f_files, 
                long f_ffree, 
                long f_favail, 
                long f_fsid, 
                long f_flag, 
                long f_namemax)
```

Constructs an instance with the given field values.

<br />

| Parameters ||
|---|---|
| `f_bsize` | `long` <br /> |
| `f_frsize` | `long` <br /> |
| `f_blocks` | `long` <br /> |
| `f_bfree` | `long` <br /> |
| `f_bavail` | `long` <br /> |
| `f_files` | `long` <br /> |
| `f_ffree` | `long` <br /> |
| `f_favail` | `long` <br /> |
| `f_fsid` | `long` <br /> |
| `f_flag` | `long` <br /> |
| `f_namemax` | `long` <br /> |

## Public methods

### toString

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String toString ()
```

Returns a string representation of the object.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | a string representation of the object. <br /> |