summaryrefslogtreecommitdiffstats
path: root/cpukit/libblock (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Revert: Remove CVS IdsJoel Sherrill2012-05-071-0/+4
| | | | | See http://www.rtems.org/pipermail/rtems-devel/2012-May/001006.html for details.
* Remove CVS-Ids.Ralf Corsépius2012-05-041-4/+0
|
* libblock: PR2040: Fix recycle destination updateSebastian Huber2012-04-161-8/+7
| | | | | Check the availablity of a recycle destination segment only when it is necessary to avoid missing resycle source segment erasures.
* libblock: PR2040: Add starvation thresholdSebastian Huber2012-04-161-1/+15
| | | | | | Do not use the unavailable block count as the erased blocks starvation threshold. Use instead the block count of the largest segment. This improves the starvation resolution gain of available blocks.
* libblock: Add rtems_bdbuf_set_block_size()Sebastian Huber2012-04-126-85/+165
| | | | | | | | The new function rtems_bdbuf_set_block_size() must be used to set the block size of a disk device. It will check if the block size is valid and set the new fields block_to_media_block_shift and bds_per_group of the rtems_disk_device structure. This helps to avoid complex arithmetic operations in the block device buffer get and read path.
* libblock: Change error status to fatal errorSebastian Huber2012-04-122-24/+47
| | | | | Calling the bdbuf API functions in the not configured state is now a fatal error.
* libblock: Use unprotected chain operationsSebastian Huber2012-04-121-4/+4
| | | | The transfer chain is accessed by at most one thread at a time.
* libblock: Use unprotected chain operationsSebastian Huber2012-04-121-17/+17
| | | | The chains are protected by the bdbuf cache lock.
* Filesystem: Change type of ioctl_returnSebastian Huber2012-04-031-2/+2
| | | | | Change the ioctl_return type of rtems_libio_ioctl_args_t to match the ioctl() return value type.
* PR2040: libblock: Flash disk starvations statisticSebastian Huber2012-03-141-2/+10
|
* PR2040: libblock: Flash disk documentationSebastian Huber2012-03-142-106/+122
|
* PR2040: libblock: Fix return statusSebastian Huber2012-03-141-3/+3
|
* PR2040: libblock: Avoid erased blocks starvationSebastian Huber2012-03-141-115/+185
| | | | | | | | | | | | The compaction process needs erased blocks. It is only possible to erase an entire segment. Thus in order to make a progress we always need enough erased blocks to empty a used or available segment which can be erased in turn. A (possibly the worst case) lower bound of erased blocks is the block count of the largest segment. The number of unavailable blocks specified by the configuration will be used to determine the erase blocks starvation situation. The number of unavailable blocks must be greater than or equal to the number of blocks in the largest segment.
* PR2040: libblock: Track number of erased blocksSebastian Huber2012-03-141-1/+8
|
* PR2040: libblock: Use segment control as parameterSebastian Huber2012-03-141-100/+91
|
* libblock: Use new API for disk mediaSebastian Huber2012-03-131-57/+14
|
* libblock: Add generic IMFS block device nodesSebastian Huber2012-03-133-0/+431
| | | | | | | | New functions o rtems_blkdev_create(), and o rtems_blkdev_create_partition(). New test libtests/block11.
* libblock: Split file and simplifySebastian Huber2012-03-133-77/+83
|
* libblock: New support functionsSebastian Huber2012-03-131-0/+21
| | | | | | | Add o rtems_disk_get_block_size(), o rtems_disk_get_block_begin(), and o rtems_disk_get_block_count().
* libblock: Change bdbuf APISebastian Huber2012-03-139-235/+189
| | | | | | | | | | | | | | | | | | | | The functions o rtems_bdbuf_get(), o rtems_bdbuf_read(), o rtems_bdbuf_syncdev(), and o rtems_bdbuf_purge_dev(), use now the disk device instead of the device identifier. This makes bdbuf independent of rtems_disk_obtain() and rtems_disk_release(). It is the responsiblity of the file system to obtain the disk device. This also reduces the overhead to get a buffer. The key for the AVL tree uses now the disk device instead of the device identifier. The pointer is interpreted as an unsigned integer. This reduces the memory overhead and makes the comparison operation a bit faster. Removed function rtems_bdbuf_purge_major(). This function was too destructive and could have unpredictable side effects.
* libblock: DocumentationSebastian Huber2012-03-131-25/+41
|
* libblock: Remove superfluous volatile qualifierSebastian Huber2012-03-132-9/+9
| | | | All these variables are protected by the bdbuf cache mutex.
* libblock: Discard extended partitionsSebastian Huber2012-03-131-0/+2
| | | | | Discard the extended partitions after evaluation. This prevents logical disks that contain other logical disks.
* libblock: rtems_ide_part_table_initialize() APISebastian Huber2012-03-132-2/+2
|
* libblock: New block IO control support functionsSebastian Huber2012-03-131-0/+39
|
* libblock: New IO control RTEMS_BLKIO_GETDISKDEVSebastian Huber2012-03-132-0/+6
|
* libblock: Avoid bdbuf APISebastian Huber2012-03-131-22/+35
|
* libblock: Split fileSebastian Huber2012-03-133-61/+89
|
* libblock: Add optional free at delete requestSebastian Huber2012-03-132-1/+18
|
* Remove all .cvsignore files.Joel Sherrill2012-02-011-2/+0
|
* 2011-12-09 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-12-092-2/+2
| | | | | | | * libblock/src/flashdisk.c: Make rtems_fdisk_crc16_gen_factors static. * libblock/src/nvdisk.c: Make rtems_nvdisk_crc16_gen_factors static.
* 2011-11-03 Chris Johns <chrisj@rtems.org>Chris Johns2011-11-031-1/+1
| | | | | | | | | | | PR 1948/filesystem * libfs/src/rfs/rtems-rfs-file-system.c, libfs/src/rfs/rtems-rfs-file-system.h, libfs/src/rfs/rtems-rfs-format.c, libfs/src/rfs/rtems-rfs-rtems.c: Add support for mount passing an ASCIIZ string containing configuration options. Remove the hardcoded dir string and size. Fix comments. * libblock/src/bdbuf.c: Fix state labels in trace output.
* 2011-07-07 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2011-07-071-3/+3
| | | | | | * libblock/src/nvdisk-sram.c, libi2c/libi2c.c, libmisc/shell/main_msdosfmt.c: Eliminate use of GNU old-style field designator extension as recommended by clang.
* 2011-06-24 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2011-06-243-10/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * include/rtems/bspIo.h, include/rtems/concat.h, include/rtems/endian.h, include/rtems/fs.h, include/rtems/irq.h, include/rtems/pci.h, include/rtems/userenv.h, libblock/include/rtems/flashdisk.h, libblock/include/rtems/nvdisk-sram.h, libblock/include/rtems/nvdisk.h, libcsupport/include/clockdrv.h, libcsupport/include/console.h, libcsupport/include/iosupp.h, libcsupport/include/spurious.h, libcsupport/include/motorola/mc68230.h, libcsupport/include/rtems/assoc.h, libcsupport/include/rtems/error.h, libcsupport/include/rtems/framebuffer.h, libcsupport/include/rtems/gxx_wrappers.h, libcsupport/include/rtems/libcsupport.h, libcsupport/include/rtems/libio_.h, libcsupport/include/rtems/malloc.h, libcsupport/include/rtems/termiostypes.h, libcsupport/include/sys/statvfs.h, libcsupport/include/sys/termios.h, libcsupport/include/sys/utsname.h, libcsupport/include/zilog/z8036.h, libcsupport/include/zilog/z8530.h, libcsupport/include/zilog/z8536.h, libfs/src/imfs/imfs.h, libfs/src/pipe/pipe.h, libmisc/capture/capture-cli.h, libmisc/capture/capture.h, libmisc/cpuuse/cpuuse.h, libmisc/devnull/devnull.h, libmisc/devnull/devzero.h, libmisc/dumpbuf/dumpbuf.h, libmisc/fb/fb.h, libmisc/fb/mw_uid.h, libmisc/mouse/mouse_parser.h, libmisc/shell/shellconfig.h, libmisc/stringto/stringto.h, libmisc/untar/untar.h, libnetworking/memory.h, posix/include/aio.h, posix/include/mqueue.h, posix/include/semaphore.h, posix/include/rtems/posix/aio_misc.h, posix/include/rtems/posix/barrier.h, posix/include/rtems/posix/cond.h, posix/include/rtems/posix/config.h, posix/include/rtems/posix/key.h, posix/include/rtems/posix/mqueue.h, posix/include/rtems/posix/mutex.h, posix/include/rtems/posix/posixapi.h, posix/include/rtems/posix/priority.h, posix/include/rtems/posix/psignal.h, posix/include/rtems/posix/pthread.h, posix/include/rtems/posix/ptimer.h, posix/include/rtems/posix/rwlock.h, posix/include/rtems/posix/semaphore.h, posix/include/rtems/posix/sigset.h, posix/include/rtems/posix/spinlock.h, posix/include/rtems/posix/threadsup.h, posix/include/rtems/posix/time.h, posix/include/rtems/posix/timer.h, posix/inline/rtems/posix/barrier.inl, posix/inline/rtems/posix/cond.inl, posix/inline/rtems/posix/mqueue.inl, posix/inline/rtems/posix/mutex.inl, posix/inline/rtems/posix/priority.inl, posix/inline/rtems/posix/pthread.inl, posix/inline/rtems/posix/rwlock.inl, posix/inline/rtems/posix/semaphore.inl, posix/inline/rtems/posix/spinlock.inl, posix/inline/rtems/posix/timer.inl, rtems/mainpage.h, rtems/include/rtems/rtems/barrier.h, rtems/include/rtems/rtems/object.h, rtems/include/rtems/rtems/timer.h, rtems/inline/rtems/rtems/barrier.inl, rtems/inline/rtems/rtems/timer.inl, rtems/src/semtranslatereturncode.c, sapi/include/rtems/config.h, sapi/include/rtems/fatal.h, sapi/include/rtems/mptables.h, score/include/rtems/score/object.h, score/include/rtems/score/priority.h, score/inline/rtems/score/object.inl, score/inline/rtems/score/priority.inl: Add @file Doxygen directives and descriptions to files which originated with RTEMS. This improves the file list page generated by Doxygen.
* 2011-05-11 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber2011-05-111-1/+1
| | | | * libblock/include/rtems/bdbuf.h: Documentation.
* 2011-05-11 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber2011-05-111-1/+1
| | | | | PR 1790/cpukit * libblock/src/flashdisk.c: Fixed memset() parameters.
* 2011-02-22 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-02-221-2/+8
| | | | * libblock/src/media-path.c: Remove warnings.
* 2011-02-17 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber2011-02-174-31/+34
| | | | | | | | * libblock/include/rtems/bdpart.h (rtems_bdpart_format): Preserve previous API. * libblock/src/bdpart-create.c, libblock/src/bdpart-read.c, libblock/src/bdpart-write.c: Reflect changes above. * libmisc/shell/fdisk.c: Reflect changes above.
* 2011-02-10 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-02-104-6/+6
| | | | | | | * libblock/include/rtems/bdpart.h (rtems_bdpart_format): Eliminate unnamed union (Non c99-compliant). * libblock/src/bdpart-create.c, libblock/src/bdpart-read.c, libblock/src/bdpart-write.c: Reflect changes above.
* 2011-01-21 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber2011-01-213-1/+42
| | | | | | * libblock/src/blkdev-ops.c: New file. * libblock/Makefile.am: Reflect change from above. * libblock/include/rtems/blkdev.h: Declare rtems_blkdev_generic_ops.
* 2011-01-20 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber2011-01-201-1/+1
| | | | | * libblock/src/show_bdbuf.c, score/src/objectmp.c: Avoid chain API violations.
* 2010-08-25 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber2010-08-252-72/+62
| | | | | * libblock/include/rtems/media.h, libblock/src/media-server.c: Use chains instead of a message queue.
* 2010-08-25 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber2010-08-251-1/+1
| | | | | CID 114/SECURE_CODING * libblock/src/media.c: Avoid strcpy().
* 2010-08-25 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber2010-08-251-26/+24
| | | | | | CID 113/SECURE_CODING * libblock/src/media-path.c: Avoid strcpy(). Style. Use assert() to avoid dead code.
* 2010-08-23 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2010-08-232-0/+9
| | | | | * libblock/src/flashdisk.c, libblock/src/nvdisk.c, libcsupport/src/ioctl.c, libfs/src/dosfs/fat_file.c: Add va_end().
* 2010-08-13 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber2010-08-131-1/+1
| | | | * libblock/src/media.c: Use unprotected chain extract.
* 2010-08-13 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber2010-08-137-0/+1901
| | | | | | | | * libblock/include/rtems/media.h, libblock/src/media-desc.c, libblock/src/media-dev-ident.c, libblock/src/media-path.c, libblock/src/media-server.c, libblock/src/media.c: New files. * Makefile.am, preinstall.am, libblock/Makefile.am: Reflect changes above.
* 2010-07-04 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2010-07-042-2/+0
| | | | | | | | | | | | | | | | * libblock/include/rtems/ide_part_table.h, libblock/src/bdbuf.c, libcsupport/src/__times.c, libcsupport/src/libio_init.c, libcsupport/src/mallocfreespace.c, libcsupport/src/mount-mgr.c, libcsupport/src/mount.c, libcsupport/src/rewinddir.c, libcsupport/src/seekdir.c, libcsupport/src/telldir.c, libcsupport/src/unmount.c, libfs/src/dosfs/fat.c, libfs/src/dosfs/fat_fat_operations.c, libfs/src/dosfs/msdos_create.c, libfs/src/dosfs/msdos_dir.c, libfs/src/dosfs/msdos_eval.c, libfs/src/dosfs/msdos_file.c, libfs/src/dosfs/msdos_format.c, libfs/src/dosfs/msdos_fsunmount.c, libfs/src/dosfs/msdos_initsupp.c, libfs/src/dosfs/msdos_rename.c, libmisc/cpuuse/cpuusagereport.c, libmisc/shell/vis.c, libmisc/stackchk/check.c, sapi/src/posixapi.c, telnetd/telnetd.c: Remove include of assert.h when it is not needed.
* 2010-06-14 Joel Sherrill <joel.sherrilL@OARcorp.com>Joel Sherrill2010-06-141-0/+2
| | | | | | | PR 1553/filesystem Coverity Id 37 * libblock/src/flashdisk.c: Fix two paths which should have returned an error but did not have the return statement.
* 2010-06-08 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber2010-06-081-2/+2
| | | | | | | | | | | | PR 1524/filesystem * libcsupport/src/rtems_mkdir.c: New file. * libcsupport/src/Makefile.am: Reflect change above. * libcsupport/include/rtems/libio.h: Added rtems_mkdir(). * libmisc/fsmount/fsmount.h, libmisc/fsmount/fsmount.c, libblock/src/bdpart-mount.c, libnetworking/rtems/mkrootfs.h, libnetworking/rtems/mkrootfs.c, libfs/src/pipe/pipe.c: Use rtems_mkdir(). Removed rtems_fsmount_create_mount_point() and rtems_rootfs_mkdir().