Page MenuHomeFreeBSD

camdd: Remove some dead code but also try to make -E functional.
ClosedPublic

Authored by jhb on Jun 20 2023, 4:34 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Oct 14, 9:04 AM
Unknown Object (File)
Wed, Oct 14, 3:47 AM
Unknown Object (File)
Tue, Oct 13, 12:35 AM
Unknown Object (File)
Mon, Oct 12, 6:26 PM
Unknown Object (File)
Sun, Oct 11, 6:07 AM
Unknown Object (File)
Tue, Oct 6, 6:27 PM
Unknown Object (File)
Fri, Oct 2, 10:35 AM
Unknown Object (File)
Sun, Sep 27, 8:09 PM
Subscribers

Details

Summary
  • Pass down the top-level arglist from main down to camdd_rw and use it in place of the hardcoded CAMDD_ARG_ERR_RECOVER when calling camdd_probe_pass. This now disables error recovery by default unless -E is specified.
  • Use the return value of parse_btl to determine if an explicit LUN was specified.
  • Remove most CAMDD_ARG_* flags that are only set and never checked. CAMDD_ARG_VERBOSE remains, but could perhaps be removed (and possibly -v should be removed as well since it is currently a no-op).

Reported by: clang -Wunused-but-set-variable (arglist in main)

Diff Detail

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