Changeset b209135 in mainline for uspace/lib/ext4/include


Ignore:
Timestamp:
2018-10-03T12:19:02Z (7 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.

Location:
uspace/lib/ext4/include/ext4
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/ext4/include/ext4/filesystem.h

    r2175178 rb209135  
    4141#include "ext4/types.h"
    4242
    43 extern errno_t ext4_filesystem_probe(service_id_t);
     43extern errno_t ext4_filesystem_probe(service_id_t, ext4_fs_probe_info_t *);
    4444extern errno_t ext4_filesystem_create(ext4_cfg_ver_t, service_id_t);
    4545extern errno_t ext4_filesystem_open(ext4_instance_t *, service_id_t,
  • uspace/lib/ext4/include/ext4/superblock.h

    r2175178 rb209135  
    118118extern void ext4_superblock_get_uuid(ext4_superblock_t *, uuid_t *);
    119119extern void ext4_superblock_set_uuid(ext4_superblock_t *, uuid_t *);
    120 extern const char *ext4_superblock_get_volume_name(ext4_superblock_t *);
     120extern errno_t ext4_superblock_get_volume_name(ext4_superblock_t *, char *,
     121    size_t);
    121122extern void ext4_superblock_set_volume_name(ext4_superblock_t *, const char *);
    122123extern const char *ext4_superblock_get_last_mounted(ext4_superblock_t *);
  • uspace/lib/ext4/include/ext4/types.h

    r2175178 rb209135  
    235235} ext4_filesystem_t;
    236236
     237typedef struct {
     238        /** Volume name, to hold 16 latin-1 chars in UTF-8 and null terminator
     239         * we need 2 * 16 + 1 bytes
     240         */
     241        char vol_name[33];
     242} ext4_fs_probe_info_t;
     243
    237244#define EXT4_BLOCK_GROUP_INODE_UNINIT   0x0001  /* Inode table/bitmap not in use */
    238245#define EXT4_BLOCK_GROUP_BLOCK_UNINIT   0x0002  /* Block bitmap not in use */
Note: See TracChangeset for help on using the changeset viewer.