Changeset 6ba36a0 in mainline for uspace/lib/ext4/include
- Timestamp:
- 2018-10-03T15:31:58Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9b0ceb1
- Parents:
- b209135
- Location:
- uspace/lib/ext4/include/ext4
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ext4/include/ext4/cfg.h
rb209135 r6ba36a0 34 34 #define LIBEXT4_CFG_H_ 35 35 36 #include "types.h" 37 36 38 /** Versions available to choose from when creating a new file system. */ 37 39 typedef enum { … … 45 47 #define ext4_def_fs_version extver_ext2 46 48 49 /** Configuration of a new ext4 file system */ 50 typedef struct { 51 /** File system version */ 52 ext4_cfg_ver_t version; 53 /** Volume name encoded as UTF-8 string */ 54 const char *volume_name; 55 } ext4_cfg_t; 56 47 57 #endif 48 58 -
uspace/lib/ext4/include/ext4/filesystem.h
rb209135 r6ba36a0 42 42 43 43 extern errno_t ext4_filesystem_probe(service_id_t, ext4_fs_probe_info_t *); 44 extern errno_t ext4_filesystem_create(ext4_cfg_ ver_t, service_id_t);44 extern errno_t ext4_filesystem_create(ext4_cfg_t *, service_id_t); 45 45 extern errno_t ext4_filesystem_open(ext4_instance_t *, service_id_t, 46 46 enum cache_mode, aoff64_t *, ext4_filesystem_t **); -
uspace/lib/ext4/include/ext4/superblock.h
rb209135 r6ba36a0 120 120 extern errno_t ext4_superblock_get_volume_name(ext4_superblock_t *, char *, 121 121 size_t); 122 extern voidext4_superblock_set_volume_name(ext4_superblock_t *, const char *);122 extern errno_t ext4_superblock_set_volume_name(ext4_superblock_t *, const char *); 123 123 extern const char *ext4_superblock_get_last_mounted(ext4_superblock_t *); 124 124 extern void ext4_superblock_set_last_mounted(ext4_superblock_t *, const char *); … … 166 166 extern uint32_t ext4_superblock_get_inodes_in_group(ext4_superblock_t *, 167 167 uint32_t); 168 extern errno_t ext4_superblock_create(size_t, uint64_t, ext4_cfg_ ver_t,168 extern errno_t ext4_superblock_create(size_t, uint64_t, ext4_cfg_t *, 169 169 ext4_superblock_t **); 170 170 extern uint32_t ext4_superblock_get_group_backup_blocks(ext4_superblock_t *, -
uspace/lib/ext4/include/ext4/types.h
rb209135 r6ba36a0 235 235 } ext4_filesystem_t; 236 236 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 237 242 typedef 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]; 242 244 } ext4_fs_probe_info_t; 243 245
Note:
See TracChangeset
for help on using the changeset viewer.