Changeset b209135 in mainline for uspace/lib/ext4/src/ops.c


Ignore:
Timestamp:
2018-10-03T12:19:02Z (6 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6ba36a0
Parents:
2175178
git-author:
Jiri Svoboda <jiri@…> (2018-10-02 22:18:01)
git-committer:
Jiri Svoboda <jiri@…> (2018-10-03 12:19:02)
Message:

Reading volume label from ext4 file system.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/ext4/src/ops.c

    r2175178 rb209135  
    908908static errno_t ext4_fsprobe(service_id_t service_id, vfs_fs_probe_info_t *info)
    909909{
    910         return ext4_filesystem_probe(service_id);
     910        ext4_fs_probe_info_t pinfo;
     911        errno_t rc;
     912
     913        rc = ext4_filesystem_probe(service_id, &pinfo);
     914        if (rc != EOK)
     915                return rc;
     916
     917        memcpy(info->label, pinfo.vol_name, sizeof(pinfo.vol_name));
     918        return EOK;
    911919}
    912920
Note: See TracChangeset for help on using the changeset viewer.