[csw-maintainers] Question regarding di(1) utility

Jeffery Small jeff at cjsa.com
Mon Jun 7 03:40:03 CEST 2010


I have been using an older self-compiled version of the di utility, but
just downloaded the current 4.24,REV=2010.06.02 version.  I am finding one
odd behavior with the new version that i wanted to fly past others using
this tool.  The manual states:

    "Unless the -a flag is specified, the following mounted filesystems
    will not normally be displayed: filesystems with total blocks <= 0;
    filesystems marked by the operating system as "ignore"; automounted
    filesystems that are duplicates of other normally mounted filesystems;
    loopback filesystems that are part of a zone (Solaris)."

I'm on a SPARC Solaris 10 system with no zones other than the default
one.  When I use my self-compiled version 3.10 utility I observe the above
behavior.  However, when using the new csw di, I am seeing some loopback
mounts listed.  For example, with the older di:

% di  -H -ss -f "S Mbv 1   i P"
Filesystem      Mount                 Size    Avail  %used     Inodes  %used
/dev/md/dsk/d0  /                    59.4G    14.3G   75%     7501312    6% 
/dev/md/dsk/d3  /var                  3.9G     3.7G    5%      500864    1% 
/dev/md/dsk/d5  /v                   67.3G    26.9G   59%     8497216    0% 
/dev/md/dsk/d7  /x                   67.3G    15.9G   75%     8497216    0% 
swap            /etc/svc/volatile     5.3G     5.3G    0%      582790    0% 
swap            /tmp                  5.7G     5.3G    6%      582790    0% 
swap            /var/run              5.3G     5.3G    0%      582790    0%

But with the CSW di, in addition to the above I also see displayed:

% /opt/csw/bin/di -H -ss -f "S Mbv 1   i P"
/platform/sun4u-us3/lib/libc_psr/libc_psr_hwcap1.so.1
    /platform/sun4u-us3/lib/libc_psr.so.1
    59.4G    14.3G    75%     7501312     6% 
/platform/sun4u-us3/lib/sparcv9/libc_psr/libc_psr_hwcap1.so.1
    /platform/sun4u-us3/lib/sparcv9/libc_psr.so.1
    59.4G    14.3G    75%     7501312     6% 
/sadm
    /var/sadm
    59.4G    14.3G    75%     7501312     6% 
/v/JS/images
    /u/jeff/lib/images
    67.3G    26.9G    59%     8497216     0% 
/x/JS/music
    /u/jeff/lib/music
    67.3G    15.9G    75%     8497216     0% 

The first two additional entries are standard Solaris loopbacks, and the
last three are personal loopback mounts for relocated data hierarchies.
These loopback mounts are seen with the older di if the -a flag is
specified.

Can people check this behavior on other systems please.  Based upon the
manual, I believe that the current operation is in error.

Regards,
-- 
Jeff

C. Jeffery Small           CJSA LLC                       206-232-3338
jeff at cjsa.com              7000 E Mercer Way, Mercer Island, WA  98040



More information about the maintainers mailing list