sanitize_inquiry_string man page on Scientific

Man page or keyword search:  
man Server   26626 pages
apropos Keyword Search (all sections)
Output format
Scientific logo
[printable version]

SANITIZE_INQUIRY_STR(9)		SCSI mid layer	       SANITIZE_INQUIRY_STR(9)

NAME
       sanitize_inquiry_string - remove non-graphical chars from an INQUIRY
       result string

SYNOPSIS
       void sanitize_inquiry_string(unsigned char * s, int len);

ARGUMENTS
       s
	   INQUIRY result string to sanitize

       len
	   length of the string

DESCRIPTION
       The SCSI spec says that INQUIRY vendor, product, and revision strings
       must consist entirely of graphic ASCII characters, padded on the right
       with spaces. Since not all devices obey this rule, we will replace
       non-graphic or non-ASCII characters with spaces. Exception: a NUL
       character is interpreted as a string terminator, so all the following
       characters are set to spaces.

AUTHORS
       James Bottomley <James.Bottomley@hansenpartnership.com>
	   Author.

       Rob Landley <rob@landley.net>
	   Author.

COPYRIGHT
Kernel Hackers Manual 2.6.	 November 2013	       SANITIZE_INQUIRY_STR(9)
[top]

List of man pages available for Scientific

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net