All of lore.kernel.org
 help / color / mirror / Atom feed
From: Karel Zak <kzak@redhat.com>
To: Ian Kent <raven@themaw.net>
Cc: L A Walsh <lkml@tlinx.org>, util-linux@vger.kernel.org
Subject: Re: Using the upcoming fsinfo()
Date: Wed, 22 May 2019 15:55:10 +0200	[thread overview]
Message-ID: <20190522135510.cpd2abfddfgmqzhb@ws.net.home> (raw)
In-Reply-To: <562668febcf41e61ab2477235ee7ce4610bc1e8d.camel@themaw.net>

On Wed, May 22, 2019 at 09:14:37PM +0800, Ian Kent wrote:
> On Tue, 2019-05-21 at 21:28 -0700, L A Walsh wrote:
> > On 2019/05/21 19:59, Ian Kent wrote:
> > > I hadn't planned on producing a utility but I do have code that I've
> > > been using to learn how to use the call.
> > > 
> > > I could turn that into a utility for use from scripts at some point.
> > >   
> > 
> > ---
> >      not required, but thought it might allow for more types of
> > tests/usages.
> > If it is really of limited or no benefit, I'm not gonna lose sleep.
> > > Avoiding having to parse string output (from the proc file system
> > > mount tables) is one of the key reasons to use a system call for
> > > this.
> > > 
> > > So this isn't the point of doing it.
> > >   
> > 
> > I get that....this wasn't intended as an 'endpoint' just a way for those
> > not
> > implementing and using the calls to get a feel for the call.  It may
> > not serve
> > a useful purpose in this case, but some system calls have direct
> > user-utils that
> > are very useful.  The lack of a system util to manipulate the pty calls
> > forced
> > me to write a few-line 'C' prog just to make 1 call to approve
> > something.  Eventually switched to a more robust interface in perl.
> 
> We will see, I will end up with something that's more or less example
> usage anyway.

I'd like to write something like "mountsh" one day. The idea is to
have very low-level tool that is able to provide command line
interface to the all fragments of the new mount API in the same
granularity as provided by kernel (mount(8) is too high-level in this
case).

Anyway, the primary goal is to use the new syscalls on standard
places (e.g. libmount) where it improves performance.

> > I.e. why not subdirs for 'by-mountpoint', or by-device, or
> > whole-dev-vs.partition, or by UUID....like some things are listed
> > in /dev.  That would allow you to narrow in on the mount you want for
> > doing whatever.
> 
> TBH, I can't see that amount of code being added to the VFS
> for this.
> 
> Simple annoyances like some mounts won't have a UUID, or won't
> have partition devices associated with them will also cause
> inconsistent views of the mounts.

or more filesystems mounted on the same mountpoint, mountpoint is
deleted, etc...

    Karel

-- 
 Karel Zak  <kzak@redhat.com>
 http://karelzak.blogspot.com

  reply	other threads:[~2019-05-22 13:55 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-13  5:33 Using the upcoming fsinfo() Ian Kent
2019-05-13  9:08 ` Karel Zak
2019-05-13 16:04   ` Bruce Dubbs
2019-05-14  0:04     ` Ian Kent
2019-05-15 11:27     ` Karel Zak
2019-05-14  0:23   ` Ian Kent
2019-05-15 11:45     ` Karel Zak
2019-05-16  0:13       ` Ian Kent
2019-05-21 19:21         ` L A Walsh
2019-05-22  2:59           ` Ian Kent
2019-05-22  3:12             ` Ian Kent
2019-05-22  4:28             ` L A Walsh
2019-05-22 13:14               ` Ian Kent
2019-05-22 13:55                 ` Karel Zak [this message]
2019-05-23  1:27                   ` Ian Kent

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=20190522135510.cpd2abfddfgmqzhb@ws.net.home \
    --to=kzak@redhat.com \
    --cc=lkml@tlinx.org \
    --cc=raven@themaw.net \
    --cc=util-linux@vger.kernel.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.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.