Changeset 3abf70c7 in mainline for uspace/srv/fs/cdfs/cdfs_ops.c


Ignore:
Timestamp:
2014-08-16T22:33:41Z (10 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
da79df42
Parents:
35b8bfe
Message:

libblock is not the best place to define SCSI structures.

File:
1 edited

Legend:

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

    r35b8bfe r3abf70c7  
    4848#include <errno.h>
    4949#include <block.h>
     50#include <scsi/mmc.h>
    5051#include <str.h>
    5152#include <byteorder.h>
     
    10351036                        altroot = 0;
    10361037        } 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);
    10431047        }
    10441048       
Note: See TracChangeset for help on using the changeset viewer.