comparison packages/redboot/current/src/fs/disk.c @ 186:d60da272beeb

Merge from eCos master repository on 2001-10-05-06:43:03-BST
author jlarmour
date Fri, 05 Oct 2001 15:31:48 +0000
parents f62680ef1804
children 8147f1c99f15
comparison
equal deleted inserted replaced
185:298031b410a6 186:d60da272beeb
164 partition_t *p; 164 partition_t *p;
165 int i, found = 0; 165 int i, found = 0;
166 166
167 167
168 if (d->kind == DISK_IDE_CDROM) { 168 if (d->kind == DISK_IDE_CDROM) {
169 #ifdef CYGSEM_REDBOOT_DISK_ISO9660
169 // no partition table, so fake it 170 // no partition table, so fake it
170 p = d->partitions; 171 p = d->partitions;
171 p->disk = d; 172 p->disk = d;
172 p->start_sector = 0; 173 p->start_sector = 0;
173 p->nr_sectors = d->nr_sectors; 174 p->nr_sectors = d->nr_sectors;
174 #ifdef CYGSEM_REDBOOT_DISK_ISO9660
175 p->funs = &redboot_iso9660fs_funs; 175 p->funs = &redboot_iso9660fs_funs;
176 #endif
177 return 1; 176 return 1;
177 #else
178 return 0;
179 #endif
178 } 180 }
179 181
180 // read Master Boot Record 182 // read Master Boot Record
181 if (DISK_READ(d, 0, buf, 1) <= 0) 183 if (DISK_READ(d, 0, buf, 1) <= 0)
182 return 0; 184 return 0;