Changeset 5a2b765 in mainline for uspace/lib/c/generic/vfs/vfs.c


Ignore:
Timestamp:
2017-03-16T17:17:31Z (7 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
39c3b7f9
Parents:
8ffedd8
Message:

Add the FS name field to struct statfs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/vfs/vfs.c

    r8ffedd8 r5a2b765  
    11151115        link_initialize(&ent->link);
    11161116        str_cpy(ent->mp, sizeof(ent->mp), path);
    1117         str_cpy(ent->fs_name, sizeof(ent->fs_name), "fixme");
    11181117        ent->service_id = stat->service_id;
     1118
     1119        struct statfs stfs;
     1120        if (statfs(path, &stfs) == EOK)
     1121                str_cpy(ent->fs_name, sizeof(ent->fs_name), stfs.fs_name);
     1122        else
     1123                str_cpy(ent->fs_name, sizeof(ent->fs_name), "?");
    11191124       
    11201125        list_append(&ent->link, mtab_list);
Note: See TracChangeset for help on using the changeset viewer.