volume_id/fat: careful with sector#, it may not fit in 32 bits. +91 bytes
volume_id/*: a bit of code shrink
This commit is contained in:
@@ -61,6 +61,17 @@ struct volume_id_partition {
|
||||
#endif
|
||||
|
||||
struct volume_id {
|
||||
int fd;
|
||||
// int fd_close:1;
|
||||
size_t sbbuf_len;
|
||||
size_t seekbuf_len;
|
||||
uint8_t *sbbuf;
|
||||
uint8_t *seekbuf;
|
||||
uint64_t seekbuf_off;
|
||||
#ifdef UNUSED_PARTITION_CODE
|
||||
struct volume_id_partition *partitions;
|
||||
size_t partition_count;
|
||||
#endif
|
||||
// uint8_t label_raw[VOLUME_ID_LABEL_SIZE];
|
||||
// size_t label_raw_len;
|
||||
char label[VOLUME_ID_LABEL_SIZE+1];
|
||||
@@ -72,19 +83,6 @@ struct volume_id {
|
||||
// smallint usage_id;
|
||||
// const char *usage;
|
||||
// const char *type;
|
||||
|
||||
#ifdef UNUSED_PARTITION_CODE
|
||||
struct volume_id_partition *partitions;
|
||||
size_t partition_count;
|
||||
#endif
|
||||
|
||||
int fd;
|
||||
uint8_t *sbbuf;
|
||||
uint8_t *seekbuf;
|
||||
size_t sbbuf_len;
|
||||
uint64_t seekbuf_off;
|
||||
size_t seekbuf_len;
|
||||
// int fd_close:1;
|
||||
};
|
||||
|
||||
struct volume_id *volume_id_open_node(int fd);
|
||||
|
||||
Reference in New Issue
Block a user