Page MenuHomeFreeBSD

cam/da: Document what an 'invalid pack' means.
ClosedPublic

Authored by imp on Jan 25 2025, 8:10 PM.
Tags
None
Referenced Files
F156265558: D48687.id149974.diff
Tue, May 12, 12:21 AM
F156265548: D48687.id150487.diff
Tue, May 12, 12:21 AM
F156265542: D48687.id150484.diff
Tue, May 12, 12:21 AM
F156262862: D48687.diff
Mon, May 11, 11:54 PM
F156173758: D48687.diff
Mon, May 11, 8:35 AM
Unknown Object (File)
Thu, Apr 30, 10:42 AM
Unknown Object (File)
Thu, Apr 30, 5:16 AM
Unknown Object (File)
Wed, Apr 29, 3:33 PM
Subscribers
None

Details

Summary

An 'invalid pack' in the da driver means that the media for the drive is
temproarily missing, pending an action by a third party (eg robot arm or
human inserting a disk pack, etc). We invalidate a pack when the
ASC/ASCQ tells us the media is missing (ASC 0x3a MEDIA MISSING) and for
that brief period of time after a peripheral has been invalidated before
the disk is destroyed. When the pack is invalid, we can't do READ/WRITE
operations to the media, so we fail all outstanding I/O and any new I/O
that comes in when this happens. This is cleared in daopen when we've
repobed the device.

Sponsored by: Netflix

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

imp requested review of this revision.Jan 25 2025, 8:10 PM

Just to be sure, DA_FLAG_PACK_INVALID does not mean there is no media. There might be a media, just not one we opened originally.

Clarify comments with mav@'s input.

This revision is now accepted and ready to land.Feb 4 2025, 6:19 PM
This revision was automatically updated to reflect the committed changes.