From sacadmin Tue Jul 25 08:56:39 2006
Received: from eastmail1bur.East.Sun.COM (eastmail1bur.East.Sun.COM [129.148.9.49])
	by sac.sfbay.sun.com (8.13.6+Sun/8.13.6) with ESMTP id k6PFudDX023844
	for <psarc@sac.eng.sun.com>; Tue, 25 Jul 2006 08:56:39 -0700 (PDT)
Received: from thunk.east.sun.com (thunk.East.Sun.COM [129.148.174.66])
	by eastmail1bur.East.Sun.COM (8.13.6+Sun/8.13.6/ENSMAIL,v2.2) with ESMTP id k6PFubSY007596;
	Tue, 25 Jul 2006 11:56:37 -0400 (EDT)
Received: from 127.0.0.1 (localhost [127.0.0.1])
	by thunk.east.sun.com (8.13.6+Sun/8.13.6) with ESMTP id k6PFuahX001428;
	Tue, 25 Jul 2006 11:56:36 -0400 (EDT)
Subject: 2006/450 du option merge
From: Bill Sommerfeld <sommerfeld@sun.com>
To: psarc@sac.sfbay.sun.com
Cc: cynthia.eastham@sun.com, peter.tribble@gmail.com
Content-Type: text/plain; charset=ISO-8859-1
Message-Id: <1153842996.1267.10.camel@thunk>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.4.6.338 
Date: Tue, 25 Jul 2006 11:56:36 -0400
Content-Transfer-Encoding: 7bit
Status: RO
Content-Length: 3370

I'm sponsoring this case for Cynthia Eastham and Peter Tribble.  Release
binding is "Patch"; the interface stability for the new options will be
Committed.  Review timer expires on 8/1/2006; the case should be on the
agenda of tomorrow's PSARC meeting and could be approved then.


    Summary:

        This case proposes that the -x and -d options to the du command
        be made available in both /usr/bin and /usr/xpg4/bin variants
        of the command, and that the -m option be added to show usage
        in terms of megabytes.

    Details:
        At present, the /usr/bin and /usr/xpg4/bin variants of the du utility
        have a flag to constrain the usage to a single filesystem -
        Solaris uses -d, while XPG4 uses -x. It is proposed that each
        allow the other, so that users may use -d or -x irrespective of
        which variant of the command is invoked. This will simplify
        migration for users of other operating systems, where the -x
        form is commonly used. It also encourages users of /usr/bin/du
        to use the standards-compliant syntax, and allows the XPG4
        variant to be used without breaking existing scripts.

        In order to eliminate differences in behaviour completely, it
        is also proposed to support the -o option in /usr/xpg4/bin/du
        in addition to /usr/bin/du.

        This case follows previous ARC opinion [1] that non-conflicting
        functionality present in /usr/xpgN/bin variants of commands
        should be present in default command variants found in /usr/bin/. 

        It is further proposed that the -m flag be added to show usage
        in megabytes (similar to the use of the -k flag to show usage
        in kilobytes). Not only does this bring du into line with the
        versions available in other operating systems (such as Linux and
        FreeBSD), it makes the output less congested for larger
        filesystems. The human readable format does not address the
        same need, as that cannot be parsed by other programs. As a
        concrete example of the problems currently experienced, the xdu
        graphical display utility fails with du -k output on a
        filesystem over 2 terabytes as the output is too large to be
        represented by a 32-bit signed integer.

        BugID 4858191 requested the addition of -m and -g. It is not
        proposed to add -g at this time: while GNU du supports -m, it
        does not support -g.

        Implementation is expected to be straightforward, as it largely
        involves removing the #ifdef statements that selectively hide
        the available options.

    Bug/RFE Number(s):
        6269516 *du* should always accept -x
        4858191 *du* du(1M) wants to have -m/-g option to show
                mega/giga byte size info
 
    Interfaces:
        /usr/bin/du gains the -x and -m options; /usr/xpg4/bin/du gains
        the -d, -o, and -m options. The interface stability for all
        added options will be Committed.
    
    Doc Impact:
        The du(1M) man page will need to be modified to reflect that
        there are no longer option differences between the /usr/bin and
        /usr/xpg4/bin variants, and will need to be amended to include
        the new -m option.

Reference

[1] PSARC/2005/683:  Add /usr/xpg4/bin/crontab and /usr/xpg6/bin/crontab.


From sacadmin Wed Jul 26 16:11:48 2006
Received: from localhost.sfbay.sun.com (punchin-sommerfeld.SFBay.Sun.COM [192.9.61.12])
	by sac.sfbay.sun.com (8.13.6+Sun/8.13.6) with ESMTP id k6QNBlCE002264
	for <psarc@sac.eng.sun.com>; Wed, 26 Jul 2006 16:11:48 -0700 (PDT)
Received: from localhost.sfbay.sun.com (localhost [127.0.0.1])
	by localhost.sfbay.sun.com (8.13.6+Sun/8.13.6) with ESMTP id k6QNBVFC006435;
	Wed, 26 Jul 2006 23:11:31 GMT
Received: (from sommerfeld@localhost)
	by localhost.sfbay.sun.com (8.13.6+Sun/8.13.6/Submit) id k6QNBUDP006434;
	Wed, 26 Jul 2006 19:11:30 -0400 (EDT)
X-Authentication-Warning: localhost.sfbay.sun.com: sommerfeld set sender to sommerfeld@sun.com using -f
Subject: Re: 2006/450 du option merge
From: Bill Sommerfeld <sommerfeld@sun.com>
To: psarc@sac.sfbay.sun.com
Cc: cynthia.eastham@sun.com, peter.tribble@gmail.com
In-Reply-To: <1153842996.1267.10.camel@thunk>
References: <1153842996.1267.10.camel@thunk>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
Message-Id: <1153955489.6355.0.camel@localhost>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.4.6.340 
Date: Wed, 26 Jul 2006 19:11:29 -0400
Status: RO
Content-Length: 67

This case was approved during today's PSARC meeting.

					- Bill


