aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/diskinfo
Commit message (Collapse)AuthorAgeFilesLines
* remove duplicate semicolons where possible.Eitan Adler2012-10-221-1/+1
| | | | | | | | Approved by: cperciva MFC after: 1 week Notes: svn path=/head/; revision=241844
* Improve error reporting in diskinfo(8) by not displaying errno whenEdward Tomasz Napierala2012-03-091-4/+8
| | | | | | | it doesn't make sense. Notes: svn path=/head/; revision=232738
* Fix `diskinfo -t` operation for disks smaller then 8GB or bigger then 2TB.Alexander Motin2011-07-211-21/+28
| | | | | | | | | Tested to work with 1.44MB floppy, 4GB USB stick and 4TB disk array. Approved by: re (kib) Notes: svn path=/head/; revision=224250
* Plumb device physical path reporting from CAM devices, through GEOM andJustin T. Gibbs2011-06-141-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | DEVFS, and make it accessible via the diskinfo utility. Extend GEOM's generic attribute query mechanism into generic disk consumers. sys/geom/geom_disk.c: sys/geom/geom_disk.h: sys/cam/scsi/scsi_da.c: sys/cam/ata/ata_da.c: - Allow disk providers to implement a new method which can override the default BIO_GETATTR response, d_getattr(struct bio *). This function returns -1 if not handled, otherwise it returns 0 or an errno to be passed to g_io_deliver(). sys/cam/scsi/scsi_da.c: sys/cam/ata/ata_da.c: - Don't copy the serial number to dp->d_ident anymore, as the CAM XPT is now responsible for returning this information via d_getattr()->(a)dagetattr()->xpt_getatr(). sys/geom/geom_dev.c: - Implement a new ioctl, DIOCGPHYSPATH, which returns the GEOM attribute "GEOM::physpath", if possible. If the attribute request returns a zero-length string, ENOENT is returned. usr.sbin/diskinfo/diskinfo.c: - If the DIOCGPHYSPATH ioctl is successful, report physical path data when diskinfo is executed with the '-v' option. Submitted by: will Reviewed by: gibbs Sponsored by: Spectra Logic Corporation Add generic attribute change notification support to GEOM. sys/sys/geom/geom.h: Add a new attrchanged method field to both g_class and g_geom. sys/sys/geom/geom.h: sys/geom/geom_event.c: - Provide the g_attr_changed() function that providers can use to advertise attribute changes. - Perform delivery of attribute change notifications from a thread context via the standard GEOM event mechanism. sys/geom/geom_subr.c: Inherit the attrchanged method from class to geom (class instance). sys/geom/geom_disk.c: Provide disk_attr_changed() to provide g_attr_changed() access to consumers of the disk API. sys/cam/scsi/scsi_pass.c: sys/cam/scsi/scsi_da.c: sys/geom/geom_dev.c: sys/geom/geom_disk.c: Use attribute changed events to track updates to physical path information. sys/cam/scsi/scsi_da.c: Add AC_ADVINFO_CHANGED to the registered asynchronous CAM events for this driver. When this event occurs, and the updated buffer type references our physical path attribute, emit a GEOM attribute changed event via the disk_attr_changed() API. sys/cam/scsi/scsi_pass.c: Add AC_ADVINFO_CHANGED to the registered asynchronous CAM events for this driver. When this event occurs, update the physical patch devfs alias for this pass instance. Submitted by: gibbs Sponsored by: Spectra Logic Corporation Notes: svn path=/head/; revision=223089
* Don't consider ioctl returning error as a fatal error and move on to nextXin LI2011-02-081-8/+18
| | | | | | | | | | | disk. When multiple devices are specified, a non-supporting ioctl will cause diskinfo(8) to stop at the point which does not seem to be necessary. Ok'ed by: phk MFC after: 1 month Notes: svn path=/head/; revision=218432
* The last big commit: let usr.sbin/ use WARNS=6 by default.Ed Schouten2010-01-021-2/+0
| | | | Notes: svn path=/head/; revision=201390
* Make diskinfo report disk stripe size and offset. It should help users toAlexander Motin2009-12-242-2/+13
| | | | | | | make file systems optimally aligned and tuned for better performance. Notes: svn path=/head/; revision=200968
* Don't bother obtaining the ident if we are not going to print it.Pawel Jakub Dawidek2009-09-031-4/+1
| | | | Notes: svn path=/head/; revision=196799
* Print provider's ident when in verbose mode.Pawel Jakub Dawidek2007-05-061-1/+6
| | | | Notes: svn path=/head/; revision=169296
* Sort sections.Ruslan Ermilov2005-01-181-5/+5
| | | | Notes: svn path=/head/; revision=140442
* Add -c to SYNOPSIS and usage().Ruslan Ermilov2005-01-112-3/+3
| | | | Notes: svn path=/head/; revision=140058
* Add -c option that calculates the overhead of read I/O ops.Søren Schmidt2004-11-092-2/+48
| | | | Notes: svn path=/head/; revision=137456
* Actually negative size is possible for file system, but not for disk.Pawel Jakub Dawidek2004-05-251-2/+1
| | | | Notes: svn path=/head/; revision=129712
* In verbose mode print disk sizes in human readable form as well.Pawel Jakub Dawidek2004-05-242-2/+9
| | | | | | | OK'ed by: phk Notes: svn path=/head/; revision=129679
* Make WARNS=5 clean.Poul-Henning Kamp2004-04-052-6/+9
| | | | | | | Prodded by: Stefan Farfeleder <stefan@fafoe.narf.at> Notes: svn path=/head/; revision=127884
* Sync manpage's synopsis with usage().Ruslan Ermilov2004-03-302-3/+5
| | | | Notes: svn path=/head/; revision=127610
* Assorted mdoc(7) fixes.Ruslan Ermilov2003-05-311-7/+8
| | | | Notes: svn path=/head/; revision=115472
* Correct a type in the bugs section. Also turn it into a list.Gordon Tetlow2003-05-111-2/+2
| | | | | | | Approved by: re(murray) Notes: svn path=/head/; revision=114916
* I forgot a rather crucial cast when I made this sectorsize agnostic.Poul-Henning Kamp2003-04-091-12/+12
| | | | | | | Tune iteration counts a bit. Notes: svn path=/head/; revision=113295
* Diskinfo is a small program to access the basic properties of a disk device:Poul-Henning Kamp2003-04-093-0/+383
sectorsize, mediasize etc. It also contains a small and naïve benchmark which reports on seek and transfer performance. Notes: svn path=/head/; revision=113287