Changeset 0cebbac in mainline


Ignore:
Timestamp:
2017-10-04T22:14:10Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
fe8961d
Parents:
7e20bee
Message:

Restore CDFS definition of primary volume descriptor, with properly sized root directory entry.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/cdfs/cdfs_ops.c

    r7e20bee r0cebbac  
    117117} cdfs_dir_flag_t;
    118118
     119/** Directory record */
    119120typedef struct {
    120121        uint8_t length;
     
    134135} __attribute__((packed)) cdfs_dir_t;
    135136
     137/** Directory record for the root directory */
     138typedef 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
    136155typedef struct {
    137156        uint8_t flags; /* reserved in primary */
     
    155174        uint32_t opt_path_table_msb;
    156175       
    157         cdfs_dir_t root_dir;
     176        cdfs_root_dir_t root_dir;
     177        uint8_t pad0;
     178       
     179        uint8_t set_ident[128];
     180        uint8_t publisher_ident[128];
     181        uint8_t preparer_ident[128];
     182        uint8_t app_ident[128];
     183       
     184        uint8_t copyright_file_ident[37];
     185        uint8_t abstract_file_ident[37];
     186        uint8_t biblio_file_ident[37];
     187       
     188        cdfs_datetime_t creation;
     189        cdfs_datetime_t modification;
     190        cdfs_datetime_t expiration;
     191        cdfs_datetime_t effective;
     192       
     193        uint8_t fs_version;
    158194} __attribute__((packed)) cdfs_vol_desc_prisec_t;
    159195
Note: See TracChangeset for help on using the changeset viewer.