Linux NFS development
 help / color / mirror / Atom feed
From: Chuck Lever III <chuck.lever@oracle.com>
To: "gisburn@nrubsig.org" <gisburn@nrubsig.org>
Cc: Linux NFS Mailing List <linux-nfs@vger.kernel.org>,
	"ms-nfs41-client-devel@lists.sourceforge.net"
	<ms-nfs41-client-devel@lists.sourceforge.net>
Subject: Re: New NFSv4.2 attribute |FATTR4_TMPFILE| (sort of opposite of |FATTR4_OFFLINE|) ?
Date: Wed, 24 Jul 2024 15:15:46 +0000	[thread overview]
Message-ID: <C389BE98-7EEE-44D6-9B5E-CE9628C5BA8C@oracle.com> (raw)
In-Reply-To: <CAKAoaQmG+FRhQquBJzFkr+BHFDCxxKky706Za2+nC9CNf8i10w@mail.gmail.com>



> On Jul 23, 2024, at 9:16 AM, Roland Mainz <roland.mainz@nrubsig.org> wrote:
> 
> The Win32 API has |FILE_ATTRIBUTE_TEMPORARY| (see
> https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-createfilea)
> to optimise for short-lived/small temporary files - would it be useful
> to reflect that in the NFSv4.2 protocol via a |FATTR4_TMPFILE|
> attribute (sort of the opposite of |FATTR4_OFFLINE|, such a
> |FATTR4_TMPFILE| should be ignored by HSM, and flushing to stable
> storage should be relaxed/delayed as long as possible) ?

Well, I might start with the client side. The client could
avoid flushing data back to the server in this case, and
the server (and protocol) wouldn't have to know about the
file's temporary status.

I'm not aware of a system call API on POSIX NFS clients
that might enable them to use such a protocol feature.
One idea might be to use fadvise(2)... ? So because this
might be a feature only for clients that support the
CreateFileA API, prototyping it on such clients might be
a good place to demonstrate value.


--
Chuck Lever



      parent reply	other threads:[~2024-07-24 15:16 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-23 13:16 New NFSv4.2 attribute |FATTR4_TMPFILE| (sort of opposite of |FATTR4_OFFLINE|) ? Roland Mainz
2024-07-23 13:58 ` Olga Kornievskaia
2024-07-23 23:05   ` Dan Shelton
2024-07-25 16:10     ` Chuck Lever III
2024-07-25 20:34       ` Mkrtchyan, Tigran
2024-07-24 15:15 ` Chuck Lever III [this message]

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=C389BE98-7EEE-44D6-9B5E-CE9628C5BA8C@oracle.com \
    --to=chuck.lever@oracle.com \
    --cc=gisburn@nrubsig.org \
    --cc=linux-nfs@vger.kernel.org \
    --cc=ms-nfs41-client-devel@lists.sourceforge.net \
    /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