Home | History | Annotate | Download | only in include
      1 /*
      2  * Copyright 2012, 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 #ifndef _STATFS_PORTABLE_H_
     18 #define _STATFS_PORTABLE_H_
     19 
     20 #include <sys/vfs.h>
     21 
     22 /* It's easy to change kernel to support statfs */
     23 struct statfs_portable {
     24     uint32_t        f_type;
     25     uint32_t        f_bsize;
     26     uint64_t        f_blocks;
     27     uint64_t        f_bfree;
     28     uint64_t        f_bavail;
     29     uint64_t        f_files;
     30     uint64_t        f_ffree;
     31     __fsid_t        f_fsid;
     32     uint32_t        f_namelen;
     33     uint32_t        f_frsize;
     34     uint32_t        f_flags;
     35     uint32_t        f_spare[4];
     36 };
     37 
     38 /*
     39 The MIPS Version is
     40 struct statfs {
     41     uint32_t        f_type;
     42     uint32_t        f_bsize;
     43     uint32_t        f_frsize;
     44     uint32_t        __pad;
     45     uint64_t        f_blocks;
     46     uint64_t        f_bfree;
     47     uint64_t        f_files;
     48     uint64_t        f_ffree;
     49     uint64_t        f_bavail;
     50     __fsid_t        f_fsid;
     51     uint32_t        f_namelen;
     52     uint32_t        f_flags;
     53     uint32_t        f_spare[5];
     54 };
     55 */
     56 #endif /* _STATFS_PORTABLE_H_ */
     57