Changeset 4670d91 in rtems for cpukit/libblock
- Timestamp:
- 05/15/09 12:52:12 (15 years ago)
- Branches:
- 4.10, 4.11, 5, master
- Children:
- 4a6d160
- Parents:
- 3b7e9bc
- Location:
- cpukit/libblock
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/libblock/include/rtems/bdbuf.h
r3b7e9bc r4670d91 1 1 /** 2 2 * @file 3 * 4 * @ingroup rtems_bdbuf 3 5 * 4 6 * Block device buffer management. -
cpukit/libblock/include/rtems/bdpart.h
r3b7e9bc r4670d91 1 1 /** 2 2 * @file 3 * 4 * @ingroup rtems_bdpart 3 5 * 4 6 * Block device partition management. … … 246 248 * physical disk device with name @a disk_name. 247 249 * 248 * The array of positive integer weights in @a distribution must be of size @a249 * size. The weights in the distribution array are summed up. Each weight is250 * then divided by the sum to obtain the disk fraction which forms the251 * corresponding partition. The partition boundaries are generated with252 * respect to the output format in @a format.250 * The array of positive integer weights in @a distribution must have exactly 251 * @a count elements. The weights in the distribution array are summed up. 252 * Each weight is then divided by the sum to obtain the disk fraction which 253 * forms the corresponding partition. The partition boundaries are generated 254 * with respect to the output format in @a format. 253 255 */ 254 256 rtems_status_code rtems_bdpart_create( -
cpukit/libblock/include/rtems/blkdev.h
r3b7e9bc r4670d91 1 1 /** 2 2 * @file 3 * 4 * @ingroup rtems_blkdev 3 5 * 4 6 * Block device management. -
cpukit/libblock/include/rtems/diskdevs.h
r3b7e9bc r4670d91 1 1 /** 2 2 * @file 3 * 4 * @ingroup rtems_disk 3 5 * 4 6 * Block device disk management. -
cpukit/libblock/include/rtems/ramdisk.h
r3b7e9bc r4670d91 1 1 /** 2 2 * @file 3 * 4 * @ingroup rtems_ramdisk 3 5 * 4 6 * RAM disk block device. -
cpukit/libblock/src/bdbuf.c
r3b7e9bc r4670d91 1 1 /** 2 2 * @file 3 * 4 * @ingroup rtems_bdbuf 3 5 * 4 6 * Block device buffer management. -
cpukit/libblock/src/bdpart.c
r3b7e9bc r4670d91 1 1 /** 2 2 * @file 3 * 4 * @ingroup rtems_bdpart 3 5 * 4 6 * Block device partition management. … … 320 322 rtems_bdbuf_buffer *block = NULL; 321 323 rtems_bdpart_partition *p = pt - 1; 322 rtems_bdpart_partition *p_end = NULL;324 const rtems_bdpart_partition *p_end = pt + (count != NULL ? *count : 0); 323 325 rtems_blkdev_bnum ep_begin = 0; /* Extended partition begin */ 324 326 rtems_blkdev_bnum ebr = 0; /* Extended boot record block index */ … … 333 335 } 334 336 335 /* Set table end and the count to a save value */ 336 p_end = pt + *count; 337 /* Set count to a save value */ 337 338 *count = 0; 338 339 … … 464 465 rtems_status_code sc = RTEMS_SUCCESSFUL; 465 466 rtems_status_code esc = RTEMS_SUCCESSFUL; 466 bool dos_compatibility = format->type == RTEMS_BDPART_FORMAT_MBR 467 bool dos_compatibility = format != NULL 468 && format->type == RTEMS_BDPART_FORMAT_MBR 467 469 && format->mbr.dos_compatibility; 468 470 rtems_bdbuf_buffer *block = NULL; … … 681 683 { 682 684 rtems_status_code sc = RTEMS_SUCCESSFUL; 683 bool dos_compatibility = format->type == RTEMS_BDPART_FORMAT_MBR 685 bool dos_compatibility = format != NULL 686 && format->type == RTEMS_BDPART_FORMAT_MBR 684 687 && format->mbr.dos_compatibility; 685 688 rtems_blkdev_bnum disk_end = 0; -
cpukit/libblock/src/blkdev.c
r3b7e9bc r4670d91 2 2 * @file 3 3 * 4 * @ingroup rtems_blkdev 5 * 4 6 * Block device management. 5 7 */ 6 8 7 9 /* 8 * blkdev.h - block device driver generic support9 *10 10 * Copyright (C) 2001 OKTET Ltd., St.-Petersburg, Russia 11 11 * Author: Victor V. Vengerov <vvv@oktet.ru> -
cpukit/libblock/src/diskdevs.c
r3b7e9bc r4670d91 1 1 /** 2 2 * @file 3 * 4 * @ingroup rtems_disk 3 5 * 4 6 * Block device disk management. … … 6 8 7 9 /* 8 * diskdevs.c - Physical and logical block devices (disks) support9 *10 10 * Copyright (C) 2001 OKTET Ltd., St.-Petersburg, Russia 11 11 * Author: Victor V. Vengerov <vvv@oktet.ru> -
cpukit/libblock/src/ramdisk.c
r3b7e9bc r4670d91 1 1 /** 2 2 * @file 3 * 4 * @ingroup rtems_ramdisk 3 5 * 4 6 * RAM disk block device.
Note: See TracChangeset
for help on using the changeset viewer.