summaryrefslogtreecommitdiffstats
path: root/cpukit/libblock/src/ide_part_table.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* cpukit/libblock: Change license to BSD-2Joel Sherrill2022-02-281-3/+22
| | | | Updates #3053.
* doxygen: Switch @brief and @ingroupSebastian Huber2020-04-281-1/+2
| | | | This order change fixes the Latex documentation build via Doxygen.
* Canonicalize config.h includeSebastian Huber2020-04-161-1/+1
| | | | | | | | Use the following variant which was already used by most source files: #ifdef HAVE_CONFIG_H #include "config.h" #endif
* libblock: Use rtems_blkdev_create_partition()Sebastian Huber2018-08-071-14/+2
| | | | Update #3358.
* Change all references of rtems.com to rtems.org.Chris Johns2014-03-211-1/+1
|
* libblock: Doxygen Enhancement Task #1Mathew Kallada2012-12-211-7/+8
|
* Remove All CVS Id Strings Possible Using a ScriptJoel Sherrill2012-05-111-2/+0
| | | | | | | | | | | | Script does what is expected and tries to do it as smartly as possible. + remove occurrences of two blank comment lines next to each other after Id string line removed. + remove entire comment blocks which only exited to contain CVS Ids + If the processing left a blank line at the top of a file, it was removed.
* 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-131-1/+1
|
* libblock: Avoid bdbuf APISebastian Huber2012-03-131-22/+35
|
* 2010-03-12 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2010-03-121-9/+46
| | | | | | | | | | * libblock/src/ide_part_table.c: Functionality of rtems_ide_part_table_get() and rtems_ide_part_table_free() was needed internally but those routines are deprecated from the public API. So move their contents to private static routines. Using the private routines in this file avoids deprecation warnings and leaves functional, although deprecated, versions for potential use by applications.
* 2010-01-19 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2010-01-191-1/+4
| | | | | * libblock/src/ide_part_table.c: Another error path without a free(sector).
* 2010-01-19 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2010-01-191-1/+3
| | | | | | | Coverity Id 24 * libblock/src/ide_part_table.c: Initialize sector to NULL and add free(sector) on error return path from get_sector() to fix potential leak.
* 2010-01-19 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2010-01-191-1/+2
| | | | | | Coverity Id 25 * libblock/src/ide_part_table.c: Add free(sector) on error return path to fix leak.
* documentation fixesThomas Doerfler2009-11-301-0/+1
| | | | | | Avoid designated initializers for C++ compatibility Fixed invalid state transition from FRESH to CACHED Free memory in case of an error.
* 2009-06-12 Chris Johns <chrisj@rtems.org>Chris Johns2009-06-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * libblock/src/bdbuf.c: Update comments. * libblock/src/bdpart.c, libblock/src/ide_part_table.c: Get the device from the rdev field of the stat buf. * libcsupport/include/rtems/libio.h: Add a path length to evalpath handler. Add parent locations to rmmod and unlink handlers. * libcsupport/include/rtems/libio_.h: Add a path length to rtems_filesystem_evaluate_path. Add rtems_filesystem_evaluate_relative_path, rtems_filesystem_dirname, and rtems_filesystem_prefix_separators. Remove rtems_filesystem_evaluate_parent. * libcsupport/src/base_fs.c, libcsupport/src/chdir.c, libcsupport/src/chmod.c, libcsupport/src/chown.c, libcsupport/src/chroot.c, libcsupport/src/fchdir.c, libcsupport/src/link.c, libcsupport/src/mount.c, libcsupport/src/open.c, libcsupport/src/privateenv.c, libcsupport/src/readlink.c, libcsupport/src/unmount.c, libcsupport/src/utime.c, libcsupport/src/unmount.c, libcsupport/src/utime.c, libfs/src/devfs/devfs.h, libfs/src/devfs/devfs_eval.c, libfs/src/devfs/devstat.c, libfs/src/dosfs/msdos_create.c, libfs/src/dosfs/msdos_misc.c, libfs/src/imfs/imfs.h, libfs/src/imfs/imfs_eval.c, libfs/src/imfs/imfs_load_tar.c, libfs/src/imfs/ioman.c, libfs/src/pipe/pipe.c, libmisc/fsmount/fsmount.c, libnetworking/lib/ftpfs.c: Add the length parameter to the eval call. * libcsupport/src/eval.c: Add rtems_filesystem_prefix_separators, rtems_filesystem_dirname, rtems_filesystem_evaluate_relative_path. Add the length parameter to the eval call. * libcsupport/src/rmdir.c: Find the parent pathloc then the node pathloc from that node. Remove the call to find the parent given the node pathloc. * libcsupport/src/stat.c: Add the length parameter to the eval call. Set the device into the rdev field. * libcsupport/src/unlink.c: Find the parent pathloc then the node pathloc from that node. Remove the call to find the parent given the node pathloc. * libfs/src/dosfs/fat.c, libfs/src/dosfs/msdos_format.c: Get the disk device number from the stat rdev field. * libfs/src/dosfs/msdos.h: Add the length parameter to the eval call. Add the parent pathloc to the rmnod handler. * libfs/src/dosfs/msdos_dir.c: Add the parent pathloc to the rmnod handler. * libfs/src/dosfs/msdos_eval.c: Add the length parameter to the eval and token call. * libfs/src/imfs/imfs_directory.c: Add the parent pathloc to the rmnod handler. * libfs/src/imfs/imfs_fchmod.c: Do not test the mode flags for only the allowed flags. Add the missing flags spec'ed in the POSIX standard. * libfs/src/imfs/imfs_fsunmount.c, libfs/src/imfs/imfs_rmnod.c, libfs/src/imfs/imfs_unlink.c, libfs/src/imfs/memfile.c: Add the parent node. Currently ignored in the IMFS. * libfs/src/imfs/imfs_stat.c: Return the device number in the rdev field. * libfs/src/imfs/imfs_mknod.c, libfs/src/imfs/imfs_symlink.c : Add the length parameter to the token call. * libfs/src/nfsclient/src/nfs.c: Add the length parameter to the eval call and parent node to the rmnod and unlink command. * libmisc/shell/internal.h: Remove the libc mounter decl to make public. * libmisc/shell/main_mount.c: Add support for hooking external mount support for new file systems. * libmisc/shell/shell.h: Add helper functions for the mount command.
* 2008-12-19 Sebastian Huber <sebastian.huber@embedded-brains.de>Joel Sherrill2008-12-191-3/+3
| | | | | | | | * libblock/src/ide_part_table.c: Fixed NULL pointer access. * libmisc/monitor/mon-command.c, libmisc/monitor/mon-editor.c, libmisc/monitor/mon-monitor.c, libmisc/monitor/monitor.h, libmisc/shell/cmds.c: The list of registered monitor commands is now private and only accessible via a lookup and iterate function.
* Convert to using "bool".Ralf Corsepius2008-09-011-3/+3
|
* s/rtems_boolean/bool/g.Ralf Corsepius2008-08-251-3/+3
|
* 2008-07-29 Chris Johns <chrisj@rtems.org>Chris Johns2008-07-291-32/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * libblock/Makefile.am: Removed src/show_bdbuf.c. * libblock/src/show_bdbuf.c: Removed. * libblock/include/rtems/bdbuf.h, cpukit/libblock/src/bdbuf.c: Rewritten the bdbuf code. Remove pre-emption disable, score access, fixed many bugs and increased performance. * libblock/include/rtems/blkdev.h: Added RTEMS_BLKDEV_CAPABILITIES block device request. Cleaned up comments. Added block and user fields to the sg buffer request. Move to rtems_* namespace. * libblock/include/rtems/diskdevs.h, cpukit/libblock/src/diskdevs.c: Move to rtems_* namespace. Add a capabilities field for drivers. Change rtems_disk_lookup to rtems_disk_obtain to match the release call. You do not lookup and release a disk, you obtain and release a disk. * libblock/include/rtems/ide_part_table.h, libblock/include/rtems/ramdisk.h, libblock/src/ide_part_table.c: Move to rtems_* namespace. * libblock/include/rtems/nvdisk.h: Formatting change. * libblock/src/blkdev.c: Move to rtems_* namespace. Change rtems_disk_lookup to rtems_disk_obtain * libblock/src/flashdisk.c: Move to rtems_* namespace. Use the new support for the block number in the scatter/grather request struct. This allows non-continuous buffer requests for those drivers that can support increasing performance. * libblock/src/nvdisk.c: Move to rtems_* namespace. Removed warnings. Added better error checking. Fixed some comments. * libblock/src/ramdisk.c: Move to rtems_* namespace. Added some trace functions to help debugging upper layers. Use the new support for the block number in the scatter/grather request struct. This allows non-continuous buffer requests for those drivers that can support increasing performance. * libfs/src/dosfs/fat.c, libfs/src/dosfs/fat.h: Use new chains API. Removed temporary hack and changed set_errno_and_return_minus_one to rtems_set_errno_and_return_minus_one. Move fat_buf_access from header and stopped it being inlined. Updated to libblock changes. * libfs/src/dosfs/fat_fat_operations.c, libfs/src/dosfs/fat_file.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_free.c, libfs/src/dosfs/msdos_initsupp.c, libfs/src/dosfs/msdos_misc.c, libfs/src/dosfs/msdos_mknod.c: Use new chains API. Removed temporary hack and changed set_errno_and_return_minus_one to rtems_set_errno_and_return_minus_one. Updated to libblock changes. * libmisc/Makefile.am: Add new ls and rm command files. * libmisc/shell/cmp-ls.c, libmisc/shell/extern-ls.h, libmisc/shell/filemode.c, libmisc/shell/print-ls.c, libmisc/shell/pwcache.c, libmisc/shell/utils-ls.c, libmisc/shell/vis.c, shell/vis.h: New. * libmisc/shell/extern-cp.h, libmisc/shell/main_cp.c, libmisc/shell/utils-cp.c: Fixed the usage call bug. * libmisc/shell/main_blksync.c: Updated to the new block IO ioctl command. * libmisc/shell/main_ls.c, libmisc/shell/main_rm.c: Updated to BSD commands with more features. * score/src/coremutex.c: Fix the strick order mutex code. * libmisc/shell/shell.c: Change shell tasks mode to be timeslice and no ASR. * sapi/include/confdefs.h: Change ata_driver_task_priority to rtems_ata_driver_task_priority. Add the new BD buf cache parameters with defaults. * score/src/interr.c: Do not return if the CPU halt call returns.
* 2004-04-17 Ralf Corsepius <ralf_corsepius@rtems.org>Ralf Corsepius2004-04-171-1/+1
| | | | | * libblock/src/ide_part_table.c: Use fprintf(stdout,...) instead of printf.
* Remove stray white spaces.Ralf Corsepius2004-04-171-15/+15
|
* Remove stray white spaces.Ralf Corsepius2004-04-151-14/+14
|
* 2004-01-08 Ralf Corsepius <corsepiu@faw.uni-ulm.de>Ralf Corsepius2004-01-091-13/+13
| | | | | | * include/rtems/blkdev.h, include/rtems/ide_part_table.h, src/bdbuf.c, src/ide_part_table.c, src/ramdisk.c: Switch to using c99 fixed size types instead of RTEMS-types.
* 2003-11-20 Ralf Corsepius <corsepiu@faw.uni-ulm.de>Ralf Corsepius2003-11-201-1/+6
| | | | | | | | | | | * Makefile.am: AM_CPPFLAGS += -I$(top_builddir). Use AM_CPPFLAGS instead of AM_CFLAGS. * src/ata.c: Include config.h. * src/bdbuf.c: Ditto. * src/blkdev.c: Ditto. * src/diskdevs.c: Ditto. * src/ide_part_table.c: Ditto. * src/ramdisk.c: Ditto.
* 2003-09-04 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2003-09-041-1/+1
| | | | | * include/rtems/ide_part_table.h, src/ata.c, src/ide_part_table.c: URL for license changed.
* 2003-06-04 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2003-06-041-1/+1
| | | | * src/ide_part_table.c: Removed warnings.
* 2003-03-25 Thomas Doerfler <Thomas.Doerfler@imd-systems.de>Joel Sherrill2003-03-251-10/+37
| | | | | | | | | | PR 367/filesystem * Makefile.am, include/rtems/ide_part_table.h, src/ata.c, src/ide_part_table.c: Some bugs were still present in the DOSFS implementation: - FAT12 did not work properly on Big-Endian machines - Some synchronization and error handling problems were present - Some legal codings for EOC were not recognized
* 2002-10-28 Eugeny S. Mints <Eugeny.Mints@oktet.ru>Joel Sherrill2002-10-281-0/+518
* Added ATA support. * include/rtems/blkdev.h: Added last IO status. * include/rtems/ata.h, include/rtems/ata_internal.h, include/rtems/ide_part_table.h, src/ata.c, src/ide_part_table.c: New files.