bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 7.2 on Solaris 10 with Zones


From: Peter O'Gorman
Subject: Re: 7.2 on Solaris 10 with Zones
Date: Fri, 24 Apr 2009 16:23:06 -0500
User-agent: Mutt/1.5.18 (2008-05-17)

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=<name>"
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=<currentzone>") 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
address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]