Changes in uspace/srv/fs/cdfs/cdfs_ops.c [993d608:3abf70c7] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/cdfs/cdfs_ops.c
r993d608 r3abf70c7 48 48 #include <errno.h> 49 49 #include <block.h> 50 #include <scsi/mmc.h> 50 51 #include <str.h> 51 52 #include <byteorder.h> … … 1035 1036 altroot = 0; 1036 1037 } else { 1037 /* Read TOC and find the last session */ 1038 toc_block_t *toc = block_get_toc(service_id, 1); 1039 if ((toc != NULL) && (uint16_t_be2host(toc->size) == 10)) { 1040 altroot = uint32_t_be2host(toc->first_lba); 1041 free(toc); 1042 } 1038 /* 1039 * Read TOC multisession information and get the start address 1040 * of the first track in the last session 1041 */ 1042 scsi_toc_multisess_data_t toc; 1043 1044 rc = block_read_toc(service_id, 1, &toc, sizeof(toc)); 1045 if (rc == EOK && (uint16_t_be2host(toc.toc_len) == 10)) 1046 altroot = uint32_t_be2host(toc.ftrack_lsess.start_addr); 1043 1047 } 1044 1048
Note:
See TracChangeset
for help on using the changeset viewer.