From owner-freebsd-current@freebsd.org Tue Mar 12 16:35:12 2019 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B61121535C09 for ; Tue, 12 Mar 2019 16:35:12 +0000 (UTC) (envelope-from freebsd-rwg@gndrsh.dnsmgr.net) Received: from gndrsh.dnsmgr.net (br1.CN84in.dnsmgr.net [69.59.192.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3224E6FC75; Tue, 12 Mar 2019 16:35:10 +0000 (UTC) (envelope-from freebsd-rwg@gndrsh.dnsmgr.net) Received: from gndrsh.dnsmgr.net (localhost [127.0.0.1]) by gndrsh.dnsmgr.net (8.13.3/8.13.3) with ESMTP id x2CGXwAl015778; Tue, 12 Mar 2019 09:33:58 -0700 (PDT) (envelope-from freebsd-rwg@gndrsh.dnsmgr.net) Received: (from freebsd-rwg@localhost) by gndrsh.dnsmgr.net (8.13.3/8.13.3/Submit) id x2CGXwaV015777; Tue, 12 Mar 2019 09:33:58 -0700 (PDT) (envelope-from freebsd-rwg) From: "Rodney W. Grimes" Message-Id: <201903121633.x2CGXwaV015777@gndrsh.dnsmgr.net> Subject: Re: ZFS no longer mounted in alphanumerical order In-Reply-To: To: Andriy Gapon Date: Tue, 12 Mar 2019 09:33:58 -0700 (PDT) CC: "Rodney W. Grimes" , Freddie Cash , =?UTF-8?Q?Trond_Endrest=C3=B8l?= , FreeBSD current X-Mailer: ELM [version 2.4ME+ PL121h (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Rspamd-Queue-Id: 3224E6FC75 X-Spamd-Bar: +++ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [3.33 / 15.00]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; NEURAL_SPAM_SHORT(0.74)[0.742,0]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[dnsmgr.net]; AUTH_NA(1.00)[]; RCPT_COUNT_FIVE(0.00)[5]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; MX_GOOD(-0.01)[cached: gndrsh.dnsmgr.net]; NEURAL_SPAM_LONG(0.82)[0.815,0]; NEURAL_SPAM_MEDIUM(0.88)[0.879,0]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:13868, ipnet:69.59.192.0/19, country:US]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(0.00)[ip: (0.05), ipnet: 69.59.192.0/19(0.03), asn: 13868(0.01), country: US(-0.07)] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Mar 2019 16:35:12 -0000 > On 12/03/2019 02:12, Rodney W. Grimes wrote: > >> On 11/03/2019 23:03, Freddie Cash wrote: > >>> Wouldn't it make more sense to teach df, du, "zfs list", and other things > >>> that list the mounted filesystems to use sorted output? > >> > >> | sort [desired options] > > > > Except that df and zfs list have a header that you have to deal with, > > which is not so easy to get sort to do the right things with out > > some hoop jumping. > > Like "| tail +2" ? > Or if it's just for visual inspection (as seems to be the case for the original > poster) just mentally filter out that line. That just deletes the header. Try to write a one liner that gives you the exact same prior behavior. It is not really fair to make a change to the system that changes behavior and just tell all the users to adapt to the change, it makes FreeBSD "user unfriendly." If I have to adapt to much or too often I see alternatives. > >> P.S. > >> zfs list already supports sorting by a specific property. > > > > Perhaps make zfs list -s mountpoint a default? > > Why? P O L A People have become use to this being sorted, now it is not. > Andriy Gapon -- Rod Grimes rgrimes@freebsd.org