Hi Jerry,

Have you had a chance to look at this? I am still seeing the wildcard 
madness on s10u5:

# zonecfg -z myzone info device
device
        match: /dev/md/shared/1/dsk/*
device
        match: /dev/md/shared/1/rdsk/*
# zlogin myzone
[Connected to zone 'myzone' pts/2]
Last login: Tue Feb  5 03:29:01 on pts/2
Sun Microsystems Inc.   SunOS 5.10      Generic January 2005
# ls -al /dev/md/shared/2
/dev/md/shared/2: No such file or directory
# ls -al /dev/md/shared/1
total 8
drwxr-xr-x   4 root     root         512 Feb  5 03:28 .
drwxr-xr-x   3 root     root         512 Feb  5 03:28 ..
drwxr-xr-x   2 root     root         512 Feb  5 03:28 dsk
drwxr-xr-x   2 root     root         512 Feb  5 03:28 rdsk
# ls -al /dev/md/shared/1/dsk
total 4
brw-r-----   1 root     sys       85, 8192 Feb  5 03:28 *  <====== 
notice the "*" block device!
drwxr-xr-x   2 root     root         512 Feb  5 03:28 .
drwxr-xr-x   4 root     root         512 Feb  5 03:28 ..
# cat /etc/release
                       Solaris 10 5/08 s10s_u5wos_05 SPARC
           Copyright 2008 Sun Microsystems, Inc.  All Rights Reserved.
                        Use is subject to license terms.
                            Assembled 07 January 2008
#

Thanks,
Zoram

Jerry Jelinek wrote:
> Zoram Thanga wrote:
>> Hi,
>>
>> On an S10u4_07/SPARC machine.
>>
>> So I want to export a disk slice to my zone. I did thus
>>
>> zonecfg:paris> add device
>> zonecfg:paris> set match=/dev/*dsk/c1t1d0s6
>> zonecfg:paris> end
>>
>> I was hoping that this would create /dev/rdsk/c1t1d0s6 and 
>> /dev/dsk/c1t1d0s6 in the zone 'paris'. So I login to the zone, and
>>
>> # zonename
>> paris
>> # ls /dev/ | grep dsk
>> *dsk
>> dsk
>> rdsk
>> #
>>
>> Notice that a "*dsk" directory was created (WTF? :)
>>
>> # cd *dsk
>> # ls -l
>> crw-r-----   1 root     sys       32,  6 Jun  7 05:13 c1t1d0s6
>>
>> So my disk slice went under /dev/*dsk/ in the zone!
>>
>> Meanwhile, the /dev/dsk and /dev/rdsk directories are empty:
>>
>> # cd /dev/rdsk
>> # ls -l
>> total 0
>> #
>> # cd /dev/dsk
>> # ls -l
>> # total 0
>> #
>>
>> Is this expected behavior or what? ( I also succeeded in exporting 
>> device match=/dev/rdsk/c1t1d0s* as /dev/rdsk/c1t1d0s* in the zone :)
>
> I just verified this works fine on nv b65.  When I get a chance I'll 
> double
> check S10u4.  It sounds like it is a bug there.
>
> Jerry
> _______________________________________________
> zones-discuss mailing list
> zones-discuss@opensolaris.org

_______________________________________________
zones-discuss mailing list
zones-discuss@opensolaris.org

Reply via email to