Subject: Re: soc zfs: zvol & DK_XNAME_SIZE
To: None <tech-kern@netbsd.org>
From: Joerg Sonnenberger <joerg@britannica.bec.de>
List: tech-kern
Date: 07/26/2007 18:07:39
On Thu, Jul 26, 2007 at 12:04:56PM -0400, Oliver Gould wrote:
> On 2007-07-26 17:33 -0500, Joerg Sonnenberger wrote:
> > On Thu, Jul 26, 2007 at 11:08:47AM -0400, Oliver Gould wrote:
> > > Hello-
> > > 
> > > ZFS allows emulated volumes (zvols) to have abritrary names of length
> > > MAXPATHLEN.  In the dk_softc structure, however, the length of sc_xname
> > > is capped at DK_XNAME_SIZE, which is currently defined at 8.
> > > 
> > > Is it reasonable to set DK_XNAME_SIZE to MAXPATHLEN to accommodate
> > > ZVOLs?
> > 
> > Aren't you confusing dkwedge_softc's sc_wname with the *device* name?
> 
> I don't think so.

Well, wedges (and GPT partitions in detail) are currently mapped to dkX
devices and those names are restricted by DK_XNAME_SIZE AFAIK.

Joerg