Re: ZFS no longer mounted in alphanumerical order

2019-03-12 Thread Adam
On Tue, Mar 12, 2019 at 4:56 PM Andriy Gapon wrote: > > Valid point. So how do I control the order of mounts of zfs? > > If you really want / need / have to do it, then disable ZFS auto mounting > in one > of multiple ways (zfs_enable="NO", canmount=noauto, mountpoint=legacy) and > use > your ow

Re: ZFS no longer mounted in alphanumerical order

2019-03-12 Thread Andriy Gapon
On 12/03/2019 18:40, Rodney W. Grimes wrote: >> On 12/03/2019 11:37, Trond Endrest?l wrote: >>> # Parallel mounting of ZFS filesystems leaves a chaotic listing of >>> # mounted filesystems when viewed by df(1). >> >> df reports filesystems in the order they were mounted. >> If you unmount and remou

Re: ZFS no longer mounted in alphanumerical order

2019-03-12 Thread Andriy Gapon
On 12/03/2019 18:33, Rodney W. Grimes wrote: >> On 12/03/2019 02:12, Rodney W. Grimes wrote: >>> 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. Your suggestion would be a POLA violation. Nothing changed with resp

Re: ZFS no longer mounted in alphanumerical order

2019-03-12 Thread Rodney W. Grimes
> On 12/03/2019 11:37, Trond Endrest?l wrote: > > # Parallel mounting of ZFS filesystems leaves a chaotic listing of > > # mounted filesystems when viewed by df(1). > > df reports filesystems in the order they were mounted. > If you unmount and remount a filesystem or mount a new filesystem, you c

Re: ZFS no longer mounted in alphanumerical order

2019-03-12 Thread Rodney W. Grimes
> 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 z

Re: ZFS no longer mounted in alphanumerical order

2019-03-12 Thread Jan Martin Mikkelsen
> On 12 Mar 2019, at 12:14, Trond Endrestøl > wrote: >> An alternative sort approach, which handles df arguments which change the >> number of columns, and only invokes df once: >> >> ${DF} "$@" | awk '/^Filesystem/ { print; sort = "sort -k " NF } ! >> /^Filesystem/ { print | sort }’ > > Wel

Re: ZFS no longer mounted in alphanumerical order

2019-03-12 Thread Trond Endrestøl
On Tue, 12 Mar 2019 13:27+0200, Andriy Gapon wrote: > On 12/03/2019 11:37, Trond Endrestøl wrote: > > # Parallel mounting of ZFS filesystems leaves a chaotic listing of > > # mounted filesystems when viewed by df(1). > > df reports filesystems in the order they were mounted. > If you unmount and

Re: ZFS no longer mounted in alphanumerical order

2019-03-12 Thread Trond Endrestøl
On Tue, 12 Mar 2019 12:14+0100, Trond Endrestøl wrote: > On Tue, 12 Mar 2019 11:37+0100, Jan Martin Mikkelsen wrote: > > > > On 12 Mar 2019, at 10:37, Trond Endrestøl > > > wrote: > > > I concocted a shell script, it looks promising: > > > > > > #!/bin/sh > > > #- > > > # Parallel mounting of

Re: ZFS no longer mounted in alphanumerical order

2019-03-12 Thread Andriy Gapon
On 12/03/2019 11:37, Trond Endrestøl wrote: > # Parallel mounting of ZFS filesystems leaves a chaotic listing of > # mounted filesystems when viewed by df(1). df reports filesystems in the order they were mounted. If you unmount and remount a filesystem or mount a new filesystem, you can see it fo

Re: ZFS no longer mounted in alphanumerical order

2019-03-12 Thread Trond Endrestøl
On Tue, 12 Mar 2019 11:37+0100, Jan Martin Mikkelsen wrote: > > On 12 Mar 2019, at 10:37, Trond Endrestøl > > wrote: > > I concocted a shell script, it looks promising: > > > > #!/bin/sh > > #- > > # Parallel mounting of ZFS filesystems leaves a chaotic listing of > > # mounted filesystems when

Re: ZFS no longer mounted in alphanumerical order

2019-03-12 Thread Jan Martin Mikkelsen
> On 12 Mar 2019, at 10:37, Trond Endrestøl > wrote: > I concocted a shell script, it looks promising: > > #!/bin/sh > #- > # Parallel mounting of ZFS filesystems leaves a chaotic listing of > # mounted filesystems when viewed by df(1). > # Separating the header from the remaining lines and so

Re: ZFS no longer mounted in alphanumerical order

2019-03-12 Thread Trond Endrestøl
On Tue, 12 Mar 2019 08:54+0200, Andriy Gapon wrote: > 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? > >> > >> |

Re: ZFS no longer mounted in alphanumerical order

2019-03-11 Thread Andriy Gapon
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 h

Re: ZFS no longer mounted in alphanumerical order

2019-03-11 Thread Trond Endrestøl
On Mon, 11 Mar 2019 14:03-0700, Freddie Cash wrote: > On Mon, Mar 11, 2019 at 1:59 PM Trond Endrestøl < > trond.endres...@fagskolen.gjovik.no> wrote: > > > On Mon, 11 Mar 2019 13:47-0700, Matthew Ahrens wrote: > > > > > On Mon, Mar 11, 2019 at 11:33 AM Trond Endrestøl < > > > trond.endres...@fags

Re: ZFS no longer mounted in alphanumerical order

2019-03-11 Thread Cy Schubert
On March 11, 2019 5:12:40 PM PDT, "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 an

Re: ZFS no longer mounted in alphanumerical order

2019-03-11 Thread Rodney W. Grimes
> 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 e

Re: ZFS no longer mounted in alphanumerical order

2019-03-11 Thread Andriy Gapon
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] P.S. zfs list already supports sorting by a specific property. -- Andriy Gapon

Re: ZFS no longer mounted in alphanumerical order

2019-03-11 Thread Freddie Cash
On Mon, Mar 11, 2019 at 1:59 PM Trond Endrestøl < trond.endres...@fagskolen.gjovik.no> wrote: > On Mon, 11 Mar 2019 13:47-0700, Matthew Ahrens wrote: > > > On Mon, Mar 11, 2019 at 11:33 AM Trond Endrestøl < > > trond.endres...@fagskolen.gjovik.no> wrote: > > > > > Has anyone else noticed ZFS datas

Re: ZFS no longer mounted in alphanumerical order

2019-03-11 Thread Trond Endrestøl
On Mon, 11 Mar 2019 13:47-0700, Matthew Ahrens wrote: > On Mon, Mar 11, 2019 at 11:33 AM Trond Endrestøl < > trond.endres...@fagskolen.gjovik.no> wrote: > > > Has anyone else noticed ZFS datasets are no longer mounted in > > alphanumerical order in CURRENT? It looks more like they are mounted > >

Re: ZFS no longer mounted in alphanumerical order

2019-03-11 Thread Matthew Ahrens
On Mon, Mar 11, 2019 at 11:33 AM Trond Endrestøl < trond.endres...@fagskolen.gjovik.no> wrote: > Has anyone else noticed ZFS datasets are no longer mounted in > alphanumerical order in CURRENT? It looks more like they are mounted > in the order in which they are encountered. > Wouldn't surprise m

Re: ZFS no longer mounted in alphanumerical order

2019-03-11 Thread Ronald Klop
There was a commit about parallel ZFS mount a little while ago. https://svnweb.freebsd.org/base?view=revision&revision=344569 I don't know if it is optional. Ronald. On Mon, 11 Mar 2019 19:32:47 +0100, Trond Endrestøl wrote: Has anyone else noticed ZFS datasets are no longer mounted in a

ZFS no longer mounted in alphanumerical order

2019-03-11 Thread Trond Endrestøl
Has anyone else noticed ZFS datasets are no longer mounted in alphanumerical order in CURRENT? It looks more like they are mounted in the order in which they are encountered. Are there any chance of reverting to the old behaviour? Here's an example: Filesystem SizeUsed