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     __kernel_fsid_t f_fsid;
     32     uint32_t        f_namelen;
     33     uint32_t        f_frsize;
     34     uint32_t        f_spare[5];
     35 };
     36 
     37 /*
     38 The MIPS Version is
     39 struct statfs {
     40     uint32_t        f_type;
     41     uint32_t        f_bsize;
     42     uint32_t        f_frsize;
     43     uint32_t        __pad;
     44     uint64_t        f_blocks;
     45     uint64_t        f_bfree;
     46     uint64_t        f_files;
     47     uint64_t        f_ffree;
     48     uint64_t        f_bavail;
     49     __kernel_fsid_t f_fsid;
     50     uint32_t        f_namelen;
     51     uint32_t        f_spare[6];
     52 };
     53 */
     54 #endif /* _STATFS_PORTABLE_H_ */
     55