From: Gao Xiang <xiang@kernel.org>
To: Friendy Su <friendy.su@sony.com>
Cc: xiang@kernel.org, chao@kernel.org, jack@suse.cz,
amir73il@gmail.com, linux-erofs@lists.ozlabs.org,
linux-kernel@vger.kernel.org, Yuezhang Mo <Yuezhang.Mo@sony.com>,
Daniel Palmer <daniel.palmer@sony.com>
Subject: Re: [PATCH v3] erofs: set SB_I_ALLOW_HSM for bdev-based mounts
Date: Fri, 20 Nov 2026 18:49:06 +0100 [thread overview]
Message-ID: <awCIEqmgv8Z6xw_0@MacBookPro.fritz.box> (raw)
In-Reply-To: <20261120031909.1757230-1-friendy.su@sony.com>
On Fri, Nov 20, 2026 at 11:19:09AM +0800, Friendy Su wrote:
> Set SB_I_ALLOW_HSM to enable fanotify FAN_PRE_ACCESS events for
> bdev-backed mounts. File-backed mounts are not supported.
>
> This allows EROFS to handle cases where file data is not available
> locally at mount time and needs to be fetched on demand by a
> FAN_PRE_ACCESS event handler.
>
> For example, an EROFS image can use blob mode with metadata stored
> on /dev/pmem0 and file data on /dev/pmem1, where the latter initially
> contains dummy data.
>
> The filesystem can be mounted with:
>
> mount -o dax,device=/dev/pmem1 /dev/pmem0 /mnt/erofs
>
> On receiving a FAN_PRE_ACCESS event, the handler fetches the actual
> file data from a remote source and fills the corresponding blocks
> on /dev/pmem1 before access proceeds.
>
> Signed-off-by: Friendy Su <friendy.su@sony.com>
> Reviewed-by: Yuezhang Mo <Yuezhang.Mo@sony.com>
> Reviewed-by: Daniel Palmer <daniel.palmer@sony.com>
Reviewed-by: Gao Xiang <xiang@kernel.org>
Thanks,
Gao Xiang
prev parent reply other threads:[~2026-11-20 17:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-20 3:19 Friendy Su
2026-11-20 17:49 ` Gao Xiang [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=awCIEqmgv8Z6xw_0@MacBookPro.fritz.box \
--to=xiang@kernel.org \
--cc=Yuezhang.Mo@sony.com \
--cc=amir73il@gmail.com \
--cc=chao@kernel.org \
--cc=daniel.palmer@sony.com \
--cc=friendy.su@sony.com \
--cc=jack@suse.cz \
--cc=linux-erofs@lists.ozlabs.org \
--cc=linux-kernel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®