Date: Wed, 18 Feb 2004 13:36:53 -0800 (PST) From: Poul-Henning Kamp <phk@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/cam/scsi scsi_cd.c scsi_da.c src/sys/contrib/dev/fla fla.c src/sys/dev/aac aac.c aac_disk.c aacvar.h src/sys/dev/amr amr_disk.c amrvar.h src/sys/dev/ata... Message-ID: <200402182136.i1ILarv9018897@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
phk 2004/02/18 13:36:53 PST FreeBSD src repository Modified files: sys/cam/scsi scsi_cd.c scsi_da.c sys/contrib/dev/fla fla.c sys/dev/aac aac.c aac_disk.c aacvar.h sys/dev/amr amr_disk.c amrvar.h sys/dev/ata ata-disk.c ata-disk.h ata-raid.c ata-raid.h atapi-fd.c atapi-fd.h sys/dev/ida ida_disk.c idavar.h sys/dev/ips ips_disk.c ips_disk.h sys/dev/mlx mlx_disk.c mlxvar.h sys/dev/ofw ofw_disk.c sys/dev/pst pst-raid.c sys/dev/raidframe rf_freebsdkintf.c sys/dev/twe twe_freebsd.c sys/geom geom_disk.c geom_disk.h sys/ia64/ia64 sscdisk.c sys/pc98/pc98 wd.c Log: Change the disk(9) API in order to make device removal more robust. Previously the "struct disk" were owned by the device driver and this gave us problems when the device disappared and the users of that device were not immediately disappearing. Now the struct disk is allocate with a new call, disk_alloc() and owned by geom_disk and just abandonned by the device driver when disk_create() is called. Unfortunately, this results in a ton of "s/\./->/" changes to device drivers. Since I'm doing the sweep anyway, a couple of other API improvements have been carried out at the same time: The Giant awareness flag has been flipped from DISKFLAG_NOGIANT to DISKFLAG_NEEDSGIANT A version number have been added to disk_create() so that we can detect, report and ignore binary drivers with old ABI in the future. Manual page update to follow shortly. Revision Changes Path 1.89 +26 -23 src/sys/cam/scsi/scsi_cd.c 1.163 +24 -21 src/sys/cam/scsi/scsi_da.c 1.40 +15 -12 src/sys/contrib/dev/fla/fla.c 1.86 +1 -1 src/sys/dev/aac/aac.c 1.37 +15 -13 src/sys/dev/aac/aac_disk.c 1.41 +1 -1 src/sys/dev/aac/aacvar.h 1.31 +16 -13 src/sys/dev/amr/amr_disk.c 1.20 +1 -1 src/sys/dev/amr/amrvar.h 1.170 +16 -14 src/sys/dev/ata/ata-disk.c 1.48 +1 -1 src/sys/dev/ata/ata-disk.h 1.78 +23 -20 src/sys/dev/ata/ata-raid.c 1.26 +1 -1 src/sys/dev/ata/ata-raid.h 1.94 +16 -14 src/sys/dev/ata/atapi-fd.c 1.22 +1 -1 src/sys/dev/ata/atapi-fd.h 1.44 +14 -11 src/sys/dev/ida/ida_disk.c 1.14 +1 -1 src/sys/dev/ida/idavar.h 1.5 +17 -14 src/sys/dev/ips/ips_disk.c 1.3 +1 -1 src/sys/dev/ips/ips_disk.h 1.32 +17 -14 src/sys/dev/mlx/mlx_disk.c 1.21 +1 -1 src/sys/dev/mlx/mlxvar.h 1.12 +13 -10 src/sys/dev/ofw/ofw_disk.c 1.13 +14 -11 src/sys/dev/pst/pst-raid.c 1.27 +18 -15 src/sys/dev/raidframe/rf_freebsdkintf.c 1.32 +19 -14 src/sys/dev/twe/twe_freebsd.c 1.85 +31 -23 src/sys/geom/geom_disk.c 1.3 +6 -2 src/sys/geom/geom_disk.h 1.29 +13 -10 src/sys/ia64/ia64/sscdisk.c 1.136 +14 -11 src/sys/pc98/pc98/wd.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200402182136.i1ILarv9018897>