diff options
author | Yuri Pankov <yuri.pankov@nexenta.com> | 2018-02-28 02:48:50 +0300 |
---|---|---|
committer | Hans Rosenfeld <hans.rosenfeld@joyent.com> | 2018-04-30 12:33:56 +0200 |
commit | 6d1e6c904bd5a457b056df2ae360a7354081558d (patch) | |
tree | e8647c082c6cf75a781a140fe68e8c3e67c0c047 | |
parent | 2b7e4143e3543c9086e5a53ddea2cbc235ebada0 (diff) | |
download | illumos-joyent-6d1e6c904bd5a457b056df2ae360a7354081558d.tar.gz |
9203 xvdi_init_dev() truncates the unit address to 7 characters
Reviewed by: Toomas Soome <tsoome@me.com>
Approved by: Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org>
-rw-r--r-- | usr/src/uts/common/xen/os/xvdi.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr/src/uts/common/xen/os/xvdi.c b/usr/src/uts/common/xen/os/xvdi.c index 3fbdb3b95f..d9013868be 100644 --- a/usr/src/uts/common/xen/os/xvdi.c +++ b/usr/src/uts/common/xen/os/xvdi.c @@ -26,6 +26,7 @@ /* * Copyright (c) 2014 by Delphix. All rights reserved. + * Copyright 2018 Nexenta Systems, Inc. */ /* @@ -252,7 +253,7 @@ xvdi_init_dev(dev_info_t *dip) char *xsname; void *prop_str; unsigned int prop_len; - char unitaddr[8]; + char unitaddr[16]; devcls = ddi_prop_get_int(DDI_DEV_T_ANY, dip, DDI_PROP_DONTPASS, "devclass", XEN_INVAL); @@ -333,7 +334,7 @@ xvdi_init_dev(dev_info_t *dip) * of the xenstore node containing the device configuration * and is contained in the 'vdev' property. * VIF devices are named using an incrementing integer. - * VBD devices are either named using the 16-bit dev_t value + * VBD devices are either named using the 32-bit dev_t value * for linux 'hd' and 'xvd' devices, or a simple integer value * in the range 0..767. 768 is the base value of the linux * dev_t namespace, the dev_t value for 'hda'. |