--- - branch: MAIN date: Tue Jul 21 19:41:00 UTC 2009 files: - new: '1.47' old: '1.46' path: src/sys/dev/dkwedge/dk.c pathrev: src/sys/dev/dkwedge/dk.c@1.47 type: modified id: 20090721T194100Z.bfba3c3b04d9071ff6a33bb346355fc297ebdbfe log: | Extract a lot of code from dkwedge_del(), and move it to dkwedge_detach() to create a comprehensive detachment hook. Let that hook run at shutdown. Now, 'drvctl -d dk0' actually deletes a wedge if it is not in-use (otherwise fails w/ EBUSY), and wedges are gracefully detached from their "parent" at shutdown. module: src subject: 'CVS commit: src/sys/dev/dkwedge' unixtime: '1248205260' user: dyoung