Hi all.

I have got the diff file with me for the bug: 6493125 (This bug is
still awaiting a sponsor)

Bug ID - 6493125
Synopsis - df options needlessly differ between /usr/bin/ and /usr/xpg4/bin/
Category:Subcategory - utility:filesystem

I sent it for a review at the help alaise, but did not get any reply from
there.

Here is the Fix (I did a dmake and tested it by copying the df file to
/usr/xpg4/bin and /usr/bin):
================================================================================================
Dir: /usr/xpg4/bin
================================================================================================
# /usr/xpg4/bin/df -?
df: unknown option: ?
Usage: df [-F FSType] [-abeghklntVvPZ] [-o FSType-specific_options]
[directory | block_device | resource]
# /usr/xpg4/bin/df -P
Filesystem           512-blocks    Used Available Capacity  Mounted on
/dev/dsk/c2t0d0s0    40345208 14642426 25299330    37%    /
/devices                   0       0       0     0%    /devices
/dev                       0       0       0     0%    /dev
ctfs                       0       0       0     0%    /system/contract
proc                       0       0       0     0%    /proc
mnttab                     0       0       0     0%    /etc/mnttab
swap                 7246120    2048 7244072     1%    /etc/svc/volatile
objfs                      0       0       0     0%    /system/object
sharefs                    0       0       0     0%    /etc/dfs/sharetab
/usr/lib/libc/libc_hwcap1.so.1
                    40345208 14642426 25299330    37%    /lib/libc.so.1
fd                         0       0       0     0%    /dev/fd
swap                 7244192     120 7244072     1%    /tmp
swap                 7244256     184 7244072     1%    /var/run
/dev/dsk/c2t0d0s7    110942464 47819518 62013522    44%    /export/home
/dev/dsk/c0t0d0p0:1  4005248  499840 3505408    13%    /media/B2

================================================================================================
Dir: /usr/bin
================================================================================================
# /usr/bin/df -?
df: unknown option: ?
Usage: df [-F FSType] [-abeghklntVvPZ] [-o FSType-specific_options]
[directory | block_device | resource]
# /usr/bin/df -P
Filesystem           512-blocks    Used Available Capacity  Mounted on
/dev/dsk/c2t0d0s0    40345208 14642426 25299330    37%    /
/devices                   0       0       0     0%    /devices
/dev                       0       0       0     0%    /dev
ctfs                       0       0       0     0%    /system/contract
proc                       0       0       0     0%    /proc
mnttab                     0       0       0     0%    /etc/mnttab
swap                 7246104    2048 7244056     1%    /etc/svc/volatile
objfs                      0       0       0     0%    /system/object
sharefs                    0       0       0     0%    /etc/dfs/sharetab
/usr/lib/libc/libc_hwcap1.so.1
                    40345208 14642426 25299330    37%    /lib/libc.so.1
fd                         0       0       0     0%    /dev/fd
swap                 7244176     120 7244056     1%    /tmp
swap                 7244240     184 7244056     1%    /var/run
/dev/dsk/c2t0d0s7    110942464 47819524 62013516    44%    /export/home
/dev/dsk/c0t0d0p0:1  4005248  499840 3505408    13%    /media/B2


--
Thanks & Regards,
Avinash Joshi
Blog: http://avinashtjoshi.wordpress.com/
Site: http://avinashtjoshi.googlepages.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://mail.opensolaris.org/pipermail/request-sponsor/attachments/20080130/f6bf2cf1/attachment.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 6493125_df_options.fix.txt
URL: 
<http://mail.opensolaris.org/pipermail/request-sponsor/attachments/20080130/f6bf2cf1/attachment.txt>

Reply via email to