Re: 7.2 on Solaris 10 with Zones
Peter O'Gorman wrote: ... > I'm not sure that there is a "good" answer to this. Thanks for investigating. I'm happy to leave things as they are. ___ Bug-coreutils mailing list Bug-coreutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-coreutils
Re: 7.2 on Solaris 10 with Zones
On Fri, Apr 24, 2009 at 04:23:06PM -0500, Peter O'Gorman wrote: > Filesystems mounted in other zones do appear to have a "zone=" > mount option, but I can not find documentation on this either. That > being said, getting the current zone name and checking > hasmntopt("zone=") and ! hasmntopt("zone=") would simply > return us to the current situation if the "zone=" options do disappear > from the mount options... but then what if we *want* to list these > mounts a.la df -Z? Turns out this only works for nfs mounts, still get errors for lofs/special mounts in other zones. Oh Well. Peter -- Peter O'Gorman po...@thewrittenword.com ___ Bug-coreutils mailing list Bug-coreutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-coreutils
Re: 7.2 on Solaris 10 with Zones
On Thu, Apr 23, 2009 at 10:09:51PM +0200, Jim Meyering wrote: > Albert Chin wrote: > > Just built 7.2 on Solaris 10/SPARC and src/df doesn't seem to like > > zones: > > $ src/df > > ... > > src/df: `/var/zones/poog/root/.SUNWnative/lib': Permission denied > > src/df: `/var/zones/poog/root/.SUNWnative/platform': Permission denied > > src/df: `/var/zones/poog/root/.SUNWnative/usr': Permission denied > > src/df: `/var/zones/poog/root/dev': Permission denied > > Hi Albert, > > Thanks for the report. > > A good place to start would be to compare truss > output for GNU df and the system-supplied > df for just one of those partitions. > I.e., make Sun's df give some useful info for a single > partition, and show that GNU df fails to do the same. > Then compare the output of their respect truss runs. > Hi, We had a quick look. By default sun's df does not list mounts in other zones, but df -Z does, and gives similar error messages. Looking at the opensolaris sources, df uses undocumented api to find the list of zones and check if mounts are in other zones (http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/cmd/fs.d/df.c the functions are zone_list, zone_getattr in http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/cmd/fs.d/fslib.c). Although those functions appear in zone.h they come after this comment: * Applications using these interfaces may fail to run on future releases. Filesystems mounted in other zones do appear to have a "zone=" mount option, but I can not find documentation on this either. That being said, getting the current zone name and checking hasmntopt("zone=") and ! hasmntopt("zone=") would simply return us to the current situation if the "zone=" options do disappear from the mount options... but then what if we *want* to list these mounts a.la df -Z? I'm not sure that there is a "good" answer to this. Peter -- Peter O'Gorman po...@thewrittenword.com ___ Bug-coreutils mailing list Bug-coreutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-coreutils
Re: 7.2 on Solaris 10 with Zones
Albert Chin wrote: > Just built 7.2 on Solaris 10/SPARC and src/df doesn't seem to like > zones: > $ src/df > ... > src/df: `/var/zones/poog/root/.SUNWnative/lib': Permission denied > src/df: `/var/zones/poog/root/.SUNWnative/platform': Permission denied > src/df: `/var/zones/poog/root/.SUNWnative/usr': Permission denied > src/df: `/var/zones/poog/root/dev': Permission denied Hi Albert, Thanks for the report. A good place to start would be to compare truss output for GNU df and the system-supplied df for just one of those partitions. I.e., make Sun's df give some useful info for a single partition, and show that GNU df fails to do the same. Then compare the output of their respect truss runs. ___ Bug-coreutils mailing list Bug-coreutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-coreutils
7.2 on Solaris 10 with Zones
Just built 7.2 on Solaris 10/SPARC and src/df doesn't seem to like zones: $ src/df ... src/df: `/var/zones/poog/root/.SUNWnative/lib': Permission denied src/df: `/var/zones/poog/root/.SUNWnative/platform': Permission denied src/df: `/var/zones/poog/root/.SUNWnative/usr': Permission denied src/df: `/var/zones/poog/root/dev': Permission denied src/df: `/var/zones/poog/root/opt/build': Permission denied src/df: `/var/zones/poog/root/proc': Permission denied src/df: `/var/zones/poog/root/etc/mnttab': Permission denied src/df: `/var/zones/poog/root/etc/svc/volatile': Permission denied src/df: `/var/zones/poog/root/dev/ksyms': Permission denied src/df: `/var/zones/poog/root/dev/fd': Permission denied ... When run as root, I get: $ src/df ... src/df: `/var/zones/poog/root/opt/dist': Not owner src/df: `/var/zones/poog/root/opt/tww': Not owner src/df: `/var/zones/poog/root/home': Not owner src/df: `/var/zones/poog/root/opt/src': Not owner src/df: `/var/zones/poog/root/opt/src/latest': Not owner ... $ grep /var/zones/poog/root/.SUNWnative/lib /etc/mnttab /lib/var/zones/poog/root/.SUNWnative/liblofs ro,nodevices,dev=80 1240195097 $ grep /var/zones/poog/root/opt/build /etc/mnttab /dev/dsk/c1t1d0s4 /var/zones/poog/root/opt/build ufs rw,intr,largefiles,logging,xattr,onerror=panic,dev=8c 1240195097 $ grep /var/zones/gax/root/home /etc/mnttab sanji:/home /var/zones/gax/root/homenfs rw,nosuid,hard,intr,bg,zone=gax,dev=5a40643 1240271940 -- albert chin (ch...@thewrittenword.com) ___ Bug-coreutils mailing list Bug-coreutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-coreutils