Changeset ff381a7 in mainline for uspace/app/df/df.c


Ignore:
Timestamp:
2015-11-02T20:54:19Z (10 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d8513177
Parents:
3feeab2 (diff), 5265eea4 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes.

File:
1 edited

Legend:

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

    r3feeab2 rff381a7  
    119119
    120120        LIST_INITIALIZE(mtab_list);
    121         get_mtab_list(&mtab_list);
     121        vfs_get_mtab_list(&mtab_list);
    122122
    123123        print_header();
    124124        list_foreach(mtab_list, link, mtab_ent_t, mtab_ent) {
    125                 statfs(mtab_ent->mp, &st);
    126                 print_statfs(&st, mtab_ent->fs_name, mtab_ent->mp);
     125                if (statfs(mtab_ent->mp, &st) == 0) {
     126                        print_statfs(&st, mtab_ent->fs_name, mtab_ent->mp);
     127                } else {
     128                        fprintf(stderr, "Cannot get information for '%s' (%d).\n",
     129                            mtab_ent->mp, errno);
     130                }
    127131        }
    128132
Note: See TracChangeset for help on using the changeset viewer.