Changes in uspace/srv/fs/cdfs/cdfs_ops.c [0cebbac:4f30222] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/cdfs/cdfs_ops.c
r0cebbac r4f30222 52 52 #include <byteorder.h> 53 53 #include <macros.h> 54 #include <unaligned.h>55 56 54 #include "cdfs.h" 57 55 #include "cdfs_endian.h" … … 117 115 } cdfs_dir_flag_t; 118 116 119 /** Directory record */120 117 typedef struct { 121 118 uint8_t length; … … 135 132 } __attribute__((packed)) cdfs_dir_t; 136 133 137 /** Directory record for the root directory */138 typedef struct {139 uint8_t length;140 uint8_t ea_length;141 142 uint32_t_lb lba;143 uint32_t_lb size;144 145 cdfs_timestamp_t timestamp;146 uint8_t flags;147 uint8_t unit_size;148 uint8_t gap_size;149 uint16_t_lb sequence_nr;150 151 uint8_t name_length;152 uint8_t name[1];153 } __attribute__((packed)) cdfs_root_dir_t;154 155 134 typedef struct { 156 135 uint8_t flags; /* reserved in primary */ … … 174 153 uint32_t opt_path_table_msb; 175 154 176 cdfs_ root_dir_t root_dir;155 cdfs_dir_t root_dir; 177 156 uint8_t pad0; 178 157 … … 479 458 size_t i; 480 459 for (i = 0; i < dsize / sizeof(uint16_t); i++) { 481 buf[i] = uint16_t_be2host( 482 ((unaligned_uint16_t *)data)[i]); 460 buf[i] = uint16_t_be2host(((uint16_t *)data)[i]); 483 461 } 484 462
Note:
See TracChangeset
for help on using the changeset viewer.