# StructStatVfs

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

# StructStatVfs

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/system/StructStatVfs "View this page in Java")  

```
class StructStatVfs
```

|---|--------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                               ||
| ↳ | [android.system.StructStatVfs](https://developer.android.com/reference/kotlin/android/system/StructStatVfs#) |

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

## Summary

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 Public constructors                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ||
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [StructStatVfs](https://developer.android.com/reference/kotlin/android/system/StructStatVfs#StructStatVfs(kotlin.Long,%20kotlin.Long,%20kotlin.Long,%20kotlin.Long,%20kotlin.Long,%20kotlin.Long,%20kotlin.Long,%20kotlin.Long,%20kotlin.Long,%20kotlin.Long,%20kotlin.Long))`(`f_bsize:` `[Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)`, `f_frsize:` `[Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)`, `f_blocks:` `[Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)`, `f_bfree:` `[Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)`, `f_bavail:` `[Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)`, `f_files:` `[Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)`, `f_ffree:` `[Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)`, `f_favail:` `[Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)`, `f_fsid:` `[Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)`, `f_flag:` `[Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)`, `f_namemax:` `[Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)`)` Constructs an instance with the given field values. |

|                                                                                         Public methods                                                                                          ||
|----------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------|
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [toString](https://developer.android.com/reference/kotlin/android/system/StructStatVfs#toString())`()` <br /> |

|                                                                                                                Properties                                                                                                                 ||
|------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html) | [f_bavail](https://developer.android.com/reference/kotlin/android/system/StructStatVfs#f_bavail:kotlin.Long) Free block count available to non-root.        |
| [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html) | [f_bfree](https://developer.android.com/reference/kotlin/android/system/StructStatVfs#f_bfree:kotlin.Long) Free block count.                                |
| [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html) | [f_blocks](https://developer.android.com/reference/kotlin/android/system/StructStatVfs#f_blocks:kotlin.Long) Total block count.                             |
| [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html) | [f_bsize](https://developer.android.com/reference/kotlin/android/system/StructStatVfs#f_bsize:kotlin.Long) File system block size (used for block counts).  |
| [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html) | [f_favail](https://developer.android.com/reference/kotlin/android/system/StructStatVfs#f_favail:kotlin.Long) Free file (inode) count available to non-root. |
| [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html) | [f_ffree](https://developer.android.com/reference/kotlin/android/system/StructStatVfs#f_ffree:kotlin.Long) Free file (inode) count.                         |
| [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html) | [f_files](https://developer.android.com/reference/kotlin/android/system/StructStatVfs#f_files:kotlin.Long) Total file (inode) count.                        |
| [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html) | [f_flag](https://developer.android.com/reference/kotlin/android/system/StructStatVfs#f_flag:kotlin.Long) Bit mask of ST_\* flags.                           |
| [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html) | [f_frsize](https://developer.android.com/reference/kotlin/android/system/StructStatVfs#f_frsize:kotlin.Long) Fundamental file system block size.            |
| [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html) | [f_fsid](https://developer.android.com/reference/kotlin/android/system/StructStatVfs#f_fsid:kotlin.Long) File system id.                                    |
| [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html) | [f_namemax](https://developer.android.com/reference/kotlin/android/system/StructStatVfs#f_namemax:kotlin.Long) Maximum filename length.                     |

## Public constructors

### StructStatVfs

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

```
StructStatVfs(
    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: Long)
```

Constructs an instance with the given field values.

## Public methods

### toString

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

```
fun toString(): String
```

|                                                          Return                                                          ||
|----------------------------------------------------------------------------------|----------------------------------------|
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | a string representation of the object. |

## Properties

### f_bavail

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

```
val f_bavail: Long
```

Free block count available to non-root.  

### f_bfree

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

```
val f_bfree: Long
```

Free block count.  

### f_blocks

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

```
val f_blocks: Long
```

Total block count.  

### f_bsize

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

```
val f_bsize: Long
```

File system block size (used for block counts).  

### f_favail

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

```
val f_favail: Long
```

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

### f_ffree

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

```
val f_ffree: Long
```

Free file (inode) count.  

### f_files

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

```
val f_files: Long
```

Total file (inode) count.  

### f_flag

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

```
val f_flag: Long
```

Bit mask of ST_\* flags.  

### f_frsize

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

```
val f_frsize: Long
```

Fundamental file system block size.  

### f_fsid

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

```
val f_fsid: Long
```

File system id.  

### f_namemax

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

```
val f_namemax: Long
```

Maximum filename length.