Linux NFS development
 help / color / mirror / Atom feed
* Linux NFSv4.1 client with Linux NFSv4.1 server, getting block size of exported filesystem?
@ 2024-04-03 17:59 Cedric Blancher
  2024-04-04 15:38 ` Mkrtchyan, Tigran
  0 siblings, 1 reply; 2+ messages in thread
From: Cedric Blancher @ 2024-04-03 17:59 UTC (permalink / raw)
  To: Linux NFS Mailing List

Good evening!

Assuming a Linux 6.6 NFSv4.1 client and a Linux 6.6 NFSv4.1 server,
can the NFSv4.1 client obtain the exact block size of the exported
filesystem (e.g. ReiserFS, btrfs, ext4, ...) via fstatat()/stat()?

Ced
-- 
Cedric Blancher <cedric.blancher@gmail.com>
[https://plus.google.com/u/0/+CedricBlancher/]
Institute Pasteur

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Linux NFSv4.1 client with Linux NFSv4.1 server, getting block size of exported filesystem?
  2024-04-03 17:59 Linux NFSv4.1 client with Linux NFSv4.1 server, getting block size of exported filesystem? Cedric Blancher
@ 2024-04-04 15:38 ` Mkrtchyan, Tigran
  0 siblings, 0 replies; 2+ messages in thread
From: Mkrtchyan, Tigran @ 2024-04-04 15:38 UTC (permalink / raw)
  To: Cedric Blancher; +Cc: Linux NFS Mailing List

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

Hi Ced,

no, it can not. However, spec defines two attributes,  maxread and maxwrite, that can indicate
client preferred IO request sizes:

https://datatracker.ietf.org/doc/html/rfc5661#section-5.8.2.20

In pNFS case, an additional layout-specific option, that can override those values.

Best regards,
   Tigran.

----- Original Message -----
> From: "Cedric Blancher" <cedric.blancher@gmail.com>
> To: "Linux NFS Mailing List" <linux-nfs@vger.kernel.org>
> Sent: Wednesday, 3 April, 2024 19:59:16
> Subject: Linux NFSv4.1 client with Linux NFSv4.1 server, getting block size of exported filesystem?

> Good evening!
> 
> Assuming a Linux 6.6 NFSv4.1 client and a Linux 6.6 NFSv4.1 server,
> can the NFSv4.1 client obtain the exact block size of the exported
> filesystem (e.g. ReiserFS, btrfs, ext4, ...) via fstatat()/stat()?
> 
> Ced
> --
> Cedric Blancher <cedric.blancher@gmail.com>
> [https://plus.google.com/u/0/+CedricBlancher/]
> Institute Pasteur

[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 2826 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-04-04 15:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-03 17:59 Linux NFSv4.1 client with Linux NFSv4.1 server, getting block size of exported filesystem? Cedric Blancher
2024-04-04 15:38 ` Mkrtchyan, Tigran

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox