diff options
| author | cg149915 <none@none> | 2006-11-09 22:19:31 -0800 |
|---|---|---|
| committer | cg149915 <none@none> | 2006-11-09 22:19:31 -0800 |
| commit | 6a7a4430ffcf3f13f9241382d0772b35a60b5802 (patch) | |
| tree | bb2828e355cf10bf449a73880aaea81a7b77066d /usr/src | |
| parent | 86bbaf93bd5702bf6546e5d43c3049056db7cb22 (diff) | |
| download | illumos-joyent-6a7a4430ffcf3f13f9241382d0772b35a60b5802.tar.gz | |
6461930 fix for 6342431 can be improved (fix lint)
Diffstat (limited to 'usr/src')
| -rw-r--r-- | usr/src/uts/common/io/scsi/targets/sd.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/usr/src/uts/common/io/scsi/targets/sd.c b/usr/src/uts/common/io/scsi/targets/sd.c index 7034efc6f5..fea4205ac2 100644 --- a/usr/src/uts/common/io/scsi/targets/sd.c +++ b/usr/src/uts/common/io/scsi/targets/sd.c @@ -4349,7 +4349,9 @@ sd_validate_geometry(struct sd_lun *un, int path_flag) int lbasize; uint_t capacity; int count; +#if defined(__i386) || defined(__amd64) int forced_under_1t = 0; +#endif ASSERT(un != NULL); ASSERT(mutex_owned(SD_MUTEX(un))); @@ -4436,7 +4438,9 @@ sd_validate_geometry(struct sd_lun *un, int path_flag) "is >1TB and has a VTOC label: use format(1M) to either decrease the"); scsi_log(SD_DEVINFO(un), sd_label, CE_CONT, "size to be < 1TB or relabel the disk with an EFI label"); +#if defined(__i386) || defined(__amd64) forced_under_1t = 1; +#endif } else { /* unlabeled disk over 1TB */ #if defined(__i386) || defined(__amd64) |
