<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sbin/camcontrol/util.c, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=main</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2023-08-16T17:54:42Z</updated>
<entry>
<title>Remove $FreeBSD$: one-line .c pattern</title>
<updated>2023-08-16T17:54:42Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-16T17:54:42Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=1d386b48a555f61cb7325543adbbb5c3f3407a66'/>
<id>urn:sha1:1d386b48a555f61cb7325543adbbb5c3f3407a66</id>
<content type='text'>
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
</content>
</entry>
<entry>
<title>sbin/camcontrol: use calloc/strlcpy where appropriate.</title>
<updated>2021-01-04T06:52:28Z</updated>
<author>
<name>Xin LI</name>
<email>delphij@FreeBSD.org</email>
</author>
<published>2021-01-04T06:52:28Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=fd340a122259d44a7d01a72890ff40411f87d79c'/>
<id>urn:sha1:fd340a122259d44a7d01a72890ff40411f87d79c</id>
<content type='text'>
MFC after:	2 weeks
</content>
</entry>
<entry>
<title>various: general adoption of SPDX licensing ID tags.</title>
<updated>2017-11-27T15:37:16Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2017-11-27T15:37:16Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=1de7b4b805ddbf2429da511c053686ac4591ed89'/>
<id>urn:sha1:1de7b4b805ddbf2429da511c053686ac4591ed89</id>
<content type='text'>
Mainly focus on files that use BSD 2-Clause license, however the tool I
was using misidentified many licenses so this was mostly a manual - error
prone - task.

The Software Package Data Exchange (SPDX) group provides a specification
to make it easier for automated tools to detect and summarize well known
opensource licenses. We are gradually adopting the specification, noting
that the tags are considered only advisory and do not, in any way,
superceed or replace the license texts.

No functional change intended.
</content>
</entry>
<entry>
<title>Fix build.</title>
<updated>2011-11-25T07:11:02Z</updated>
<author>
<name>Xin LI</name>
<email>delphij@FreeBSD.org</email>
</author>
<published>2011-11-25T07:11:02Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=53f48302de0535f830c7ad7cd71a8cc7a8103853'/>
<id>urn:sha1:53f48302de0535f830c7ad7cd71a8cc7a8103853</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add firmware update support for SCSI devices.</title>
<updated>2011-11-25T04:03:37Z</updated>
<author>
<name>Ed Maste</name>
<email>emaste@FreeBSD.org</email>
</author>
<published>2011-11-25T04:03:37Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=1f4782a4c1b46cabe611ff9297472b8733a73a8c'/>
<id>urn:sha1:1f4782a4c1b46cabe611ff9297472b8733a73a8c</id>
<content type='text'>
Firmware can be reprogrammed on devices from Hitachi, HP, IBM, Plextor,
Quantum, and Seagate.  At least one device from each manufacturer has
been tested with some version of this code, and it has been used to
update thousands of drives so far.

The man page suggests having a backup of the drive's data, and the
operation must be confirmed, either interactively or on the command
line.  (This is the same as the confirmation on the format command.)

This work is largely derived from fwprog.c by Andre Albsmeier.

Submitted by:	Nima Misaghian
Sponsored by:	Sandvine Incorporated
MFC after:	3 months
</content>
</entry>
<entry>
<title>Make this WARNS=6 clean by:</title>
<updated>2003-08-05T09:19:07Z</updated>
<author>
<name>Johan Karlsson</name>
<email>johan@FreeBSD.org</email>
</author>
<published>2003-08-05T09:19:07Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=398676131faedd41231af416764c103430fc7660'/>
<id>urn:sha1:398676131faedd41231af416764c103430fc7660</id>
<content type='text'>
 1: add 'const' to char * where needed;
 2: mark unused variables with __unused;
 3: remove double prototypes for mode_edit and mode_list.
 4: moves the global variables 'bus', 'target', and 'lun' into
        the main function and protect them with #ifndef MINIMALISTIC,
 5: renames 3 variable in order not to shadow other things
        index -&gt; indx -- in modepage_dump since index is a function
		from &lt;strings.h.&gt;
        arglist -&gt; arglst -- in the function parse_btl since arglist
                is also a global variable
        convertend -&gt; convertend2 -- in the function editentry_set
                since that name is used two times within the function.
 6: cast 0xffffffff in the macro RESOLUTION_MAX(size) to (int)
        since it is unsigned otherwise.

Tested by:	make universe
Approved by:	ken
</content>
</entry>
<entry>
<title>Use __FBSDID.</title>
<updated>2003-05-02T06:49:10Z</updated>
<author>
<name>David E. O'Brien</name>
<email>obrien@FreeBSD.org</email>
</author>
<published>2003-05-02T06:49:10Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=bf2783a016b31f89c8b011c2be0ca911b0c3146c'/>
<id>urn:sha1:bf2783a016b31f89c8b011c2be0ca911b0c3146c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Make camcontrol WARNS=2 clean.</title>
<updated>2003-02-20T21:07:59Z</updated>
<author>
<name>Johan Karlsson</name>
<email>johan@FreeBSD.org</email>
</author>
<published>2003-02-20T21:07:59Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c7cf7aa6841c2f217ff154b1509b2cae14334645'/>
<id>urn:sha1:c7cf7aa6841c2f217ff154b1509b2cae14334645</id>
<content type='text'>
Approved by:	ken
</content>
</entry>
<entry>
<title>Properly check malloc(3) return values</title>
<updated>2000-12-01T12:02:16Z</updated>
<author>
<name>Chris D. Faulhaber</name>
<email>jedgar@FreeBSD.org</email>
</author>
<published>2000-12-01T12:02:16Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=b673f44d6db0789c736031522d0c3416009f734e'/>
<id>urn:sha1:b673f44d6db0789c736031522d0c3416009f734e</id>
<content type='text'>
Approved by:	ken
</content>
</entry>
<entry>
<title>This is an overhaul of the mode page handling in camcontrol as well as</title>
<updated>2000-08-08T06:24:17Z</updated>
<author>
<name>Kelly Yancey</name>
<email>kbyanc@FreeBSD.org</email>
</author>
<published>2000-08-08T06:24:17Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=7e32b20d95deb61abb1200c43282ba7204a191c0'/>
<id>urn:sha1:7e32b20d95deb61abb1200c43282ba7204a191c0</id>
<content type='text'>
related patches. These include:
	* Mode page editting can be scripted. This involves two
	  things: first, if stdin is not a tty, changes are read from
	  stdin rather than invoking $EDITOR. Second, and more
	  importantly, not all modepage entries must be included in the
	  change set. This means that camcontrol can now gracefully handle
	  more intrusive editting from the $EDITOR, including removal or
	  rearrangement of lines. It also means that you can do stuff
	  like:
		# echo "WCE: 1" | camcontrol modepage da3 -m 8 -e
		# newfs /dev/da3
		# echo "WCE: 0" | camcontrol modepage da3 -m 8 -e
	* Range-checking on user-supplied input values. modeedit.c now
	  uses the field width specifiers to determine the maximum
	  allowable value for a field. If the user enters a value larger
	  than the maximum, it clips the value to the max and warns the
	  user. This also involved patching cam_cmdparse.c to be more
	  consistent with regards to the "count" parameter to arg_put
	  (previously is was the length of strings and 1 for all integral
	  types). The cam_cdbparse(3) man page was also updated to reflect
	  the revised semantics.
	* In the process, I removed the 64 entry limit on mode pages (not
	  that we were even close to hitting that limit). This was a nice
	  side-effect of the other changes.
	* Technically, the new mode editting functionality allows editting
	  of character array entries in mode pages (type 'c' or 'z'),
	  however since buff_encode doesn't grok them it is currently
	  useless.
	* Camcontrol gained two new options related to mode pages: -l and
	  -b. The former lists all available mode pages for a given
	  device. The latter forces mode page display in binary format
	  (the default when no mode page definition was found in
	  scsi_modes).
	* Added support for mode page names to scsi_modes. Allows names to
	  be displayed alongside mode numbers in the mode page
	  listing. Updated scsi_modes to use the new functionality. This
	  also adds the semicolon into the scsi_modes syntax as an
	  optional mode page definition terminator. This is needed to name
	  pages without providing a page format definition.
	* Updated scsi_all.h to include a structure describing mode page
	  headers.
	* Added $FreeBSD$ line to scsi_modes.

Inspired by:	dwhite
Reviewed by:	ken
</content>
</entry>
</feed>
