Linux filesystem development
 help / color / mirror / Atom feed
From: Thiago Macieira <thiago.macieira@intel.com>
To: Miklos Szeredi <miklos@szeredi.hu>,
	Christian Brauner <brauner@kernel.org>
Cc: linux-fsdevel@vger.kernel.org, Miklos Szeredi <mszeredi@redhat.com>
Subject: Re: statmount: requesting more information: statfs, devname, label
Date: Thu, 30 May 2024 10:33:27 -0300	[thread overview]
Message-ID: <35784462.WqB4rESCP9@tjmaciei-mobl5> (raw)
In-Reply-To: <20240530-heilen-haftpflicht-c696306f5287@brauner>

[-- Attachment #1: Type: text/plain, Size: 1186 bytes --]

On Thursday 30 May 2024 07:42:09 GMT-3 Christian Brauner wrote:
> Let me rephrase what I mean as I probably wasn't clear enough in my
> first mail. My objection is mostly that I don't want us to start putting
> stuff in there that's not generic. And yes, some statfs() fields might
> make sense to put in statmount(). But I think stuff like "f_files" or
> "f_ffree" is really something that's misplaced in statmount().

I'll take what I can get. My class's API exposes the total size of the 
filesystem (f_blocks), the bytes available and free (f_bfree and f_bavail), the 
block size and whether the filesystem is read-only. For the latter, I don't 
know if it's the same as MOUNT_ATTR_RDONLY.

Keeping statfs() is not a problem. My biggest problem is matching the mounted 
filesystems from either mountinfo or listmounts() with what is actually visible 
in the system. For example, what happens if you mount something that makes a 
mountpoint invisible? Both df and the Qt class hide the entry too, but it was 
guess work until the mount IDs were exposed in statx().

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Principal Engineer - Intel DCAI Fleet Engineering and Quality

[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5152 bytes --]

  reply	other threads:[~2024-05-30 13:33 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-29 18:36 statmount: requesting more information: statfs, devname, label Thiago Macieira
2024-05-30  7:16 ` Christian Brauner
2024-05-30  8:25   ` Miklos Szeredi
2024-05-30 10:42     ` Christian Brauner
2024-05-30 13:33       ` Thiago Macieira [this message]
2024-05-30 13:21     ` Thiago Macieira

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=35784462.WqB4rESCP9@tjmaciei-mobl5 \
    --to=thiago.macieira@intel.com \
    --cc=brauner@kernel.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=miklos@szeredi.hu \
    --cc=mszeredi@redhat.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox