summaryrefslogtreecommitdiff
path: root/sys/dev/dkwedge/dk.c
AgeCommit message (Expand)Author
2022-08-22dk(4): dklastclose never fails. Make it return void.riastradh
2022-08-22dk(4): Simplify dklastclose.riastradh
2022-08-22dk(4): Assert parent is open in dklastclose.riastradh
2022-08-22dk(4): Move first-open logic to new dkfirstopen function.riastradh
2022-08-22dk(4): Turn locking contract comment into assertions in dklastclose.riastradh
2022-08-22dk(4): Narrow scope of dk_rawlock on close to dklastclose.riastradh
2022-08-22dk(4): Factor common mutex_exit out of branches to keep it balanced.riastradh
2022-08-22dk(4): Move lock release out of dklastclose into caller.riastradh
2022-08-22dk(4): Serialize closing parent's dk_rawvp with opening it.riastradh
2022-06-11Since rev 1.101 DIOCAWEDGE could return success without filling in themartin
2022-04-23Need vnode locked fot VOP_FDISCARD().hannken
2022-01-15dk(4): Omit redundant microoptimization around cv_broadcast.riastradh
2021-10-18Whitespace nits.simonb
2021-10-16Remove funny straggling blank line.simonb
2021-08-21fix some more typos in comments/log messages, improve wording as well.andvar
2021-08-04Swap and Dump uses DEV_BSIZE units. Translate from device sectors likemlelstv
2021-06-02Clear sc_mode only on last close.mlelstv
2021-06-02Copy mode of open wedges with the same parent and validate it.mlelstv
2021-05-22Handle read-only parent devices.mlelstv
2020-10-06Check dkdriver before calling a driver function.mlelstv
2020-05-24dkwedge_add: Allow for expanding the size of an existing wedge withoutjmcneill
2020-03-02New ioctl DIOCGSECTORALIGN returns sector alignment parameters.riastradh
2020-03-01Allow dumping to cgd(4) on a dk(4).riastradh
2020-02-28Update sc->sc_parent->dk_rawvp while the lock named dk_rawlock heldyamaguchi
2018-05-12Support dump on wedges.mlelstv
2017-03-05Enhance disk metrics by calculating a weighted sum that is incrementedmlelstv
2017-02-27pass also DIOCGCACHE to underlying device, so that upper layers would be ablejdolecek
2017-01-19use a bounded copy. NFCImaya
2016-12-24add missing mutex/cv cleanup to error paths.mlelstv
2016-12-16Make dk(4) device mpsafe.mlelstv
2016-05-29missed one exit path with the previous change.mlelstv
2016-05-29release openlock mutex before closing parent device.mlelstv
2016-04-27Add dkwedge_find_by_parent()christos
2016-01-15Allow dump to raidframe component which is a wedge.mlelstv
2015-12-27Return error in dkopen when dk_open_parent fails. Also change dk_open_parentmlelstv
2015-11-28sc_size is already measured in sectors.mlelstv
2015-10-10remove incorrect comment (from kre)christos
2015-10-06print wedge announcement in one line instead of twojmcneill
2015-08-25Rename variable to avoid -Wshadow warnings with some compilers.pooka
2015-08-22No longer access the disk driver directly.mlelstv
2015-08-22revert the previousmlelstv
2015-08-20when scanning for disklabels, close block device only when this wasmlelstv
2015-01-02- Use NODEV instead of 0christos
2014-12-31make more drivers use disk_ioctl, and add a dev parameter to it so thatchristos
2014-12-31disk_blocksize and disk_set_info relay the same informationmlelstv
2014-12-08Really provide disk properties, the old code computed values that weremlelstv
2014-11-22fix iobuf setup, cleanupmlelstv
2014-11-04Implement DIOCMWEDGES ioctl that triggers wedge autodiscovery.mlelstv
2014-08-28Make dk(4) discard from partition start, not from disk start.riastradh
2014-07-25Implement d_discard for dk. This closes PR 47940.dholland