sanitize_inquiry_string(9) suse man page | unix.com

Man Page: sanitize_inquiry_string

Operating Environment: suse

Section: 9

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. July 2010 SANITIZE_INQUIRY_STR(9)
Related Man Pages
inquiry-revision-id(9p) - opensolaris
scsi_id(8) - suse
tr(1) - v7
inquiry-device-type(9p) - opensolaris
inquiry-product-id(9p) - opensolaris
Similar Topics in the Unix Linux Community
How to restrict user to a specific directory in solaris 10
Cut command on RHEL 6.8 compatibility issues
SOCKS proxy &amp; PAM configuration exposure
A (ksh) Library For and From UNIX.com
The Future of the PM (Private Message) System at UNIX.com