-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sg_wr_mode: add --mfile=MF option for decoding mask in the MF file; a…
…dd inhex support for sg_wr_mode git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@1049 6180dd3e-e324-4e3e-922d-17de1ae2f315
- Loading branch information
1 parent
c278800
commit 7cf5d40
Showing
14 changed files
with
91 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ sg3-utils (1.49-0.1) unstable; urgency=low | |
|
||
* New upstream version | ||
|
||
-- Douglas Gilbert <[email protected]> Mon, 21 Aug 2023 18:00:00 -0400 | ||
-- Douglas Gilbert <[email protected]> Tue, 05 Sep 2023 19:00:00 -0400 | ||
|
||
sg3-utils (1.48-0.1) unstable; urgency=low | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Using Caching mode page [0x8] [SBC-4] | ||
# | ||
# want to change WCE from 1 to 0 | ||
# Possible invocation: | ||
# sg_wr_mode -p 8 --cfile=wr_mode_cont.hex --mfile=wr_mode_mask.hex /dev/sdc | ||
# | ||
# As shown, that invocaton will not save the change so the next power cycle | ||
# (or reset) will revert that change. Add the --save option to make the | ||
# change persist through a power cycle. | ||
# | ||
# Assume WCE is set like this: | ||
# 08 12 14 00 ff ff 00 00 ff ff ff ff 80 14 00 00 | ||
# 00 00 00 00 | ||
# | ||
# This is the new cotents we want (byte 2 changes from 14 to 10 (hex)): | ||
08 12 10 00 ff ff 00 00 ff ff ff ff 80 14 00 00 | ||
00 00 00 00 | ||
# | ||
# To change it back, swap which hex string above is commented, or power | ||
# cycle the disk. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# | ||
# sg_wr_mode utility hex data file | ||
# See wr_mode_cont.hex for more information | ||
# | ||
# With a 20 byte long Caching mode page, this mask may be shorter. | ||
# Missing 12 trailing bytes are equivalent to 16 zero bytes. | ||
# | ||
# Following is a mask for the WCE bit field: | ||
00 00 04 00 | ||
|
||
# 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters