1 /* 2 * Copyright (C) 2011 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 package libcore.io; 18 19 /** 20 * File information returned by fstatvfs(2) and statvfs(2). 21 */ 22 public final class StructStatVfs { 23 /** File system block size (used for block counts). */ 24 public final long f_bsize; /*unsigned long*/ 25 26 /** Fundamental file system block size. */ 27 public final long f_frsize; /*unsigned long*/ 28 29 /** Total block count. */ 30 public final long f_blocks; /*fsblkcnt_t*/ 31 32 /** Free block count. */ 33 public final long f_bfree; /*fsblkcnt_t*/ 34 35 /** Free block count available to non-root. */ 36 public final long f_bavail; /*fsblkcnt_t*/ 37 38 /** Total file (inode) count. */ 39 public final long f_files; /*fsfilcnt_t*/ 40 41 /** Free file (inode) count. */ 42 public final long f_ffree; /*fsfilcnt_t*/ 43 44 /** Free file (inode) count available to non-root. */ 45 public final long f_favail; /*fsfilcnt_t*/ 46 47 /** File system id. */ 48 public final long f_fsid; /*unsigned long*/ 49 50 /** Bit mask of ST_* flags. */ 51 public final long f_flag; /*unsigned long*/ 52 53 /** Maximum filename length. */ 54 public final long f_namemax; /*unsigned long*/ 55 56 StructStatVfs(long f_bsize, long f_frsize, long f_blocks, long f_bfree, long f_bavail, 57 long f_files, long f_ffree, long f_favail, 58 long f_fsid, long f_flag, long f_namemax) { 59 this.f_bsize = f_bsize; 60 this.f_frsize = f_frsize; 61 this.f_blocks = f_blocks; 62 this.f_bfree = f_bfree; 63 this.f_bavail = f_bavail; 64 this.f_files = f_files; 65 this.f_ffree = f_ffree; 66 this.f_favail = f_favail; 67 this.f_fsid = f_fsid; 68 this.f_flag = f_flag; 69 this.f_namemax = f_namemax; 70 } 71 } 72