Changeset 6ba36a0 in mainline for uspace/lib/ext4/include/ext4/types.h


Ignore:
Timestamp:
2018-10-03T15:31:58Z (6 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9b0ceb1
Parents:
b209135
Message:

Setting a custom ext4 volume label.

File:
1 edited

Legend:

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

    rb209135 r6ba36a0  
    235235} ext4_filesystem_t;
    236236
     237/** Size of buffer for volume name. To hold 16 latin-1 chars encoded as UTF-8
     238 * and a null terminator we need 2 * 16 + 1 bytes
     239 */
     240#define EXT4_VOL_NAME_BYTES 33
     241
    237242typedef 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];
     243        char vol_name[EXT4_VOL_NAME_BYTES];
    242244} ext4_fs_probe_info_t;
    243245
Note: See TracChangeset for help on using the changeset viewer.