aboutsummaryrefslogtreecommitdiff
path: root/share/man/man9/disk.9
Commit message (Collapse)AuthorAgeFilesLines
* man filesystems: fix xrefs after move to section 4Alexander Ziaee2024-05-161-3/+3
| | | | | Reviewed by: des, imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1077
* Remove $FreeBSD$: two-line nroff patternWarner Losh2023-08-161-2/+0
| | | | Remove /^\.\\"\n\.\\"\s*\$FreeBSD\$$\n/
* disk(9): Fix a few mandoc related errorsGordon Bergling2020-12-191-6/+7
| | | | | | | | | | | | | | - function name without markup: g_io_deliver() - function name without markup: disk_gone() - sections out of conventional order: Sh SEE ALSO - referenced manual not found: Xr MAKE_DEV 9 Actually the man page of MAKE_DEV has never existed. MFC after: 3 days Notes: svn path=/head/; revision=368791
* Fix typo in r360492:Benedict Reuschling2020-05-011-1/+1
| | | | | | | | | appeard -> appeared Reported by: trasz (via IRC) Notes: svn path=/head/; revision=360533
* Add HISTORY sections to disk(9), driver(9), andBenedict Reuschling2020-04-301-1/+6
| | | | | | | | | | | | | epoch(9). In one instance, remove a trailing whitespace while here. Submitted by: gbergling_gmail.com Approved by: bcr Differential Revision: https://reviews.freebsd.org/D24243 Notes: svn path=/head/; revision=360492
* Expose API to allow disks to ask for alias names in devfs.Warner Losh2017-08-071-2/+24
| | | | | | | | | | | | | | | | | | | Implement disk_add_alias to allow aliases to be added to disks. All disk have a primary name (say "foo") can also have secondary names (say "bar") such that all instances of "foo" also have a "bar" alias. So if you have foo0, foo0p1, foo1, foo1s1 and foo1s1a nodes created by the foo driver and gpart, device nodes bar0, bar0p1, bar1, bar1s1 and bar1s1a will appear as symlinks back to the original nodes. This generalizes to multiple aliases. However, since the unit number follows the primary name, multiple device drivers can't create the same aliases unless those drives coorinate the unit number space (eg you couldn't add an alias 'disk' to both 'da' and 'ada' because it's possible to have da0 and ada0, because 'disk0' is ambiguous). Differential Revision: https://reviews.freebsd.org/D11873 Notes: svn path=/head/; revision=322198
* Remove Giant-locked drivers support (DISKFLAG_NEEDSGIANT flag) from disk(9).Alexander Motin2013-10-221-2/+0
| | | | | | | | Since at least FreeBSD 7 we had only four of them in the base tree, and in head branch, thanks to jhb@, we have no any for more then a year. Notes: svn path=/head/; revision=256884
* Document disk_resize(9).Edward Tomasz Napierala2012-10-301-1/+10
| | | | Notes: svn path=/head/; revision=242359
* Fix a bug which causes a panic in daopen(). The panic is caused byKenneth D. Merry2012-06-241-1/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a da(4) instance going away while GEOM is still probing it. In this case, the GEOM disk class instance has been created by disk_create(), and the taste of the disk is queued in the GEOM event queue. While that event is queued, the da(4) instance goes away. When the open call comes into the da(4) driver, it dereferences the freed (but non-NULL) peripheral pointer provided by GEOM, which results in a panic. The solution is to add a callback to the GEOM disk code that is called when all of its resources are cleaned up. This is implemented inside GEOM by adding an optional callback that is called when all consumers have detached from a provider, and the provider is about to be deleted. scsi_cd.c, scsi_da.c: In the register routine for the cd(4) and da(4) routines, acquire a reference to the CAM peripheral instance just before we call disk_create(). Use the new GEOM disk d_gone() callback to register a callback (dadiskgonecb()/cddiskgonecb()) that decrements the peripheral reference count once GEOM has finished cleaning up its resources. In the cd(4) driver, clean up open and close behavior slightly. GEOM makes sure we only get one open() and one close call, so there is no need to set an open flag and decrement the reference count if we are not the first open. In the cd(4) driver, use cam_periph_release_locked() in a couple of error scenarios to avoid extra mutex calls. geom.h: Add a new, optional, providergone callback that is called when a provider is about to be deleted. geom_disk.h: Add a new d_gone() callback to the GEOM disk interface. Bump the DISK_VERSION to version 2. This probably should have been done after a couple of previous changes, especially the addition of the d_getattr() callback. geom_disk.c: Add a providergone callback for the disk class, g_disk_providergone(), that calls the user's d_gone() callback if it exists. Bump the DISK_VERSION to 2. geom_subr.c: In g_destroy_provider(), call the providergone callback if it has been provided. In g_new_geomf(), propagate the class's providergone callback to the new geom instance. blkfront.c: Callers of disk_create() are supposed to pass in DISK_VERSION, not an explicit disk API version number. Update the blkfront driver to do that. disk.9: Update the disk(9) man page to include information on the new d_gone() callback, as well as the previously added d_getattr() callback, d_descr field, and HBA PCI ID fields. MFC after: 5 days Notes: svn path=/head/; revision=237518
* Mention disk_gone() in disk(9).Edward Tomasz Napierala2009-02-221-0/+7
| | | | | | | Approved by: rwatson (mentor) Notes: svn path=/head/; revision=188917
* - Extend disk structure to allow to store disk's serial number, which can bePawel Jakub Dawidek2007-05-051-0/+2
| | | | | | | | | | retrieved via GEOM::ident attribute. - Bump disk(9) ABI version. OK'ed by: phk Notes: svn path=/head/; revision=169285
* Fix minor type: "struct disk *" instead of "struct *disk".Robert Watson2007-01-281-1/+1
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=166307
* Add a new disk flag - DISKFLAG_CANFLUSHCACHE, which indicates that the diskPawel Jakub Dawidek2006-10-311-1/+3
| | | | | | | | | can handle BIO_FLUSH requests. Sponsored by: home.pl Notes: svn path=/head/; revision=163833
* Spelling fixes.Mike Pritchard2004-06-211-1/+1
| | | | Notes: svn path=/head/; revision=130843
* Improve formatting.Ruslan Ermilov2004-02-191-45/+40
| | | | Notes: svn path=/head/; revision=125996
* Improve contents, ruin formatting.Poul-Henning Kamp2004-02-181-38/+68
| | | | Notes: svn path=/head/; revision=125979
* Correct #include file in SYNOPSIS:Hiten Pandya2003-10-231-1/+1
| | | | | | | | It is not sys/geom_disk.h, but located under geom/ directory, so, mark it geom/geom_disk.h. Notes: svn path=/head/; revision=121402
* Mdoc Janitor:Hiten Pandya2003-10-231-3/+9
| | | | | | | | | | | | | | | | * Uppercase .Dt command contents. * Make use of .Fo and .Fc for marking up functions with a lot of arguments. NOTE: Please do not use the `\' line seperator for mdoc(7) manual pages, as it has problems of its own on some displays; instead, consult the mdoc(7) manual on using .Fo and .Fc. * Change 'man' to 'manual' for consistency. Notes: svn path=/head/; revision=121401
* Additional information on the memory properties of struct diskRobert Watson2003-09-261-2/+9
| | | | | | | | | | | | instances: the memory holding a struct disk should be pre-zeroed so as to initialize any storage framework private data in the structures properly. In addition, the memory must be writable so that the private data may be updated. Pointed out by: phk Notes: svn path=/head/; revision=120497
* Documentation of kernel disk_create() and disk_destroy() APIs. TheseRobert Watson2003-09-261-0/+151
APIs permit disk device drivers to register and deregister storage devices for use by storage device consumers. No doubt this API will change more as time flies by, but this should be helpful to the creators of new storage device drivers. Reviewed by: phk Notes: svn path=/head/; revision=120496