zsh-workers
 help / color / mirror / code / Atom feed
From: Mikael Magnusson <mikachu@gmail.com>
To: zsh workers <zsh-workers@zsh.org>
Subject: Re: Filename generation: sorting by inode number
Date: Sat, 25 Apr 2015 07:11:10 +0200	[thread overview]
Message-ID: <CAHYJk3TqVJHja61ADBqfH228Q5ZchSCcO1_Bi=Y8g5uW8Q=Kdg@mail.gmail.com> (raw)
In-Reply-To: <20150425001719.GA12262@xvii.vinc17.org>

On Sat, Apr 25, 2015 at 2:17 AM, Vincent Lefevre <vincent@vinc17.net> wrote:
> With the "o" glob qualifier for filename generation, it is not possible
> to sort by inode number. Such a feature could be very useful to speed up
> file reading on an ext3 file system when the files are not in the cache.
>
> See:
>   https://lists.debian.org/debian-user/2015/04/msg01310.html
>   http://comments.gmane.org/gmane.mail.mutt.devel/4089

Everything is possible with the "o" glob qualifier by virtue of the
"e" specifier;
zmodload -aF zsh/stat -b:stat b:zstat
ls -Udi *(noe:'zstat -L -A REPLY +inode $REPLY:')

You can also stick that in a helper function ins and use *(no+ins).

-- 
Mikael Magnusson


  parent reply	other threads:[~2015-04-25  5:11 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-25  0:17 Vincent Lefevre
2015-04-25  1:01 ` Bart Schaefer
2015-04-28 15:06   ` Vincent Lefevre
2015-04-25  5:11 ` Mikael Magnusson [this message]
2015-04-25 18:14   ` Bart Schaefer
2015-04-28 15:19     ` Vincent Lefevre
2015-04-28 16:34       ` Bart Schaefer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAHYJk3TqVJHja61ADBqfH228Q5ZchSCcO1_Bi=Y8g5uW8Q=Kdg@mail.gmail.com' \
    --to=mikachu@gmail.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).