Revert "Make the IMSM_DEVNAME_AS_SERIAL option work when creating containers."

This reverts commit 9ef5dbff4a as it is
duplicating the check that is done internal to imsm_read_serial().

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
This commit is contained in:
Dan Williams 2010-03-03 00:03:04 -07:00
parent a380e2751e
commit 32ba9157f5
1 changed files with 1 additions and 4 deletions

View File

@ -3210,10 +3210,7 @@ static int add_to_super_imsm(struct supertype *st, mdu_disk_info_t *dk,
dd->fd = fd;
dd->e = NULL;
rv = imsm_read_serial(fd, devname, dd->serial);
if (rv && check_env("IMSM_DEVNAME_AS_SERIAL")) {
memset(dd->serial, 0, MAX_RAID_SERIAL_LEN);
fd2devname(fd, (char *) dd->serial);
} else if (rv) {
if (rv) {
fprintf(stderr,
Name ": failed to retrieve scsi serial, aborting\n");
free(dd);