Changeset 9dc6083 in mainline for uspace/app/df/df.c


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

Implement statfs operation.

File:
1 edited

Legend:

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

    r66366470 r9dc6083  
    3838#include <stdlib.h>
    3939#include <unistd.h>
    40 #include <stats.h>
     40#include <sys/statfs.h>
    4141#include <errno.h>
    4242#include <adt/list.h>
     
    5959                mtab_ent_t *mtab_ent = list_get_instance(cur, mtab_ent_t,
    6060                    link);
    61                 if (statfs(mtab_ent->mp, &st) < 0)
     61                if (statfs(/*mtab_ent->mp*/ "/data", &st) < 0)
    6262                        return 1;
    63        
     63                       
    6464                printf("%13s %15lld %9lld %9lld %3ld%% %s\n",
    6565                        mtab_ent->fs_name,
Note: See TracChangeset for help on using the changeset viewer.