Changeset 1ff9922 in rtems for cpukit/libblock
- Timestamp:
- 12/22/07 08:27:18 (16 years ago)
- Branches:
- 4.10, 4.11, 4.9, 5, master
- Children:
- e85eb70
- Parents:
- e709ff4a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/libblock/src/flashdisk.c
re709ff4a r1ff9922 2003 2003 /** 2004 2004 * Flash disk WRITE request handler. This primitive copies data from 2005 * supplied buffer to RAMdisk and invoke the callout function to inform2005 * supplied buffer to flash disk and invoke the callout function to inform 2006 2006 * upper layer that writing is completed. 2007 2007 * … … 2341 2341 * Flash disk device driver initialization. 2342 2342 * 2343 * @todo Memory clean up on error is really badly handled. 2344 * 2343 2345 * @param major Flash disk major device number. 2344 2346 * @param minor Minor device number, not applicable. … … 2420 2422 return RTEMS_NO_MEMORY; 2421 2423 2422 fd->block_count 2424 fd->block_count = blocks; 2423 2425 2424 2426 fd->devices = calloc (c->device_count, sizeof (rtems_fdisk_device_ctl)); … … 2472 2474 rtems_fdisk_error ("compacting of disk failed: %s (%d)", 2473 2475 strerror (ret), ret); 2474 2475 rtems_flashdisk_count = rtems_flashdisk_configuration_size; 2476 }2476 } 2477 2478 rtems_flashdisk_count = rtems_flashdisk_configuration_size; 2477 2479 2478 2480 return RTEMS_SUCCESSFUL;
Note: See TracChangeset
for help on using the changeset viewer.