Changeset 5930e3f in mainline for uspace/app/df/df.c


Ignore:
Timestamp:
2013-07-09T06:06:37Z (12 years ago)
Author:
Manuele Conti <conti.ma@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
951f32ce
Parents:
11baebb
Message:

Implement size_block function for ext4fs.
Fix typo in libfs VFS_OUT_STATFS operation.
Remove all debug code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/df/df.c

    r11baebb r5930e3f  
    5959                mtab_ent_t *mtab_ent = list_get_instance(cur, mtab_ent_t,
    6060                    link);
    61                 if (statfs(/*mtab_ent->mp*/ "/data", &st) < 0)
    62                         return 1;
    63                        
     61                statfs(mtab_ent->mp, &st);
     62                printf("block size:%ld\n", st.f_bsize);
    6463                printf("%13s %15lld %9lld %9lld %3ld%% %s\n",
    6564                        mtab_ent->fs_name,
     
    6766                        (long long) st.f_bfree * st.f_bsize,
    6867                        (long long) (st.f_blocks - st.f_bfree) * st.f_bsize,
    69                         PERCENTAGE(st.f_blocks - st.f_bfree, st.f_blocks),
     68                        (st.f_blocks)?PERCENTAGE(st.f_blocks - st.f_bfree, st.f_blocks):0L,
    7069                        mtab_ent->mp);
    7170        }
Note: See TracChangeset for help on using the changeset viewer.