]> git.ipfire.org Git - thirdparty/mdadm.git/commit - super-intel.c
imsm: extract right-most whitespace stripped serial number
authorDan Williams <dan.j.williams@intel.com>
Wed, 8 Apr 2009 18:41:51 +0000 (11:41 -0700)
committerDan Williams <dan.j.williams@intel.com>
Wed, 8 Apr 2009 18:41:51 +0000 (11:41 -0700)
commit316e2bf426350bc5f8dec16ad7fc079d9c8ba725
treeba95a3defdbc33f541a5a7bba4ab52861596560e
parentb9d77223eb68a211410131b5b0895c547a6d5734
imsm: extract right-most whitespace stripped serial number

According to new documentation the metadata expects that all whitespace
(characters <= 0x20) are stripped from the incoming serial number.  If
the length remains longer than MAX_RAID_SERIAL_LEN then only the
right-most characters are preserved.

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
super-intel.c