From: Baolin Liu <liubaolin12138@163.com>
To: linkinjeon@kernel.org, hyc.lee@gmail.com
Cc: ntfs@lists.linux.dev, linux-kernel@vger.kernel.org,
Baolin Liu <liubaolin@kylinos.cn>
Subject: [PATCH v2 0/5] ntfs: report filesystem errors through fsnotify
Date: Wed, 16 Sep 2026 10:23:40 +0800 [thread overview]
Message-ID: <20260916022345.1151836-1-liubaolin12138@163.com> (raw)
From: Baolin Liu <liubaolin@kylinos.cn>
Report NTFS metadata and shutdown errors through the generic filesystem
error notification infrastructure. Use volume-level events when no
affected file is available and file-level events when an inode identifies
the failure.
Split the reporting by allocation, attribute, inode, MFT, and shutdown
domains. Propagate reporting state through attribute searches,
mapping-pairs updates, and MFT mappings so callers do not emit duplicate
events.
Changes since v1:
- Restrict patch 1 to the volume helper and non-file allocation rollbacks.
- Introduce the file helper with attribute reporting in patch 2.
- Separate inode and MFT reporting into patches 3 and 4.
- Adapt MFT writeback reporting to the current asynchronous I/O path.
- Keep shutdown reporting independent in patch 5.
Testing:
- Built fs/ntfs with W=1 after each patch.
- Booted the patched kernel in QEMU and monitored FAN_FS_ERROR events on
an NTFS volume with fanotify. Verified that volume metadata errors report
EIO without a valid file handle, file metadata errors report EIO with a
valid FID, and shutdown errors report ESHUTDOWN.
Baolin Liu (5):
ntfs: report allocation metadata errors to fsnotify
ntfs: report attribute errors to fsnotify
ntfs: report inode metadata errors to fsnotify
ntfs: report MFT errors to fsnotify
ntfs: report shutdown errors to fsnotify
fs/ntfs/attrib.c | 88 +++++++++++-----
fs/ntfs/attrib.h | 6 ++
fs/ntfs/attrlist.c | 16 +--
fs/ntfs/bitmap.c | 2 +-
fs/ntfs/inode.c | 62 +++++++----
fs/ntfs/lcnalloc.c | 4 +-
fs/ntfs/logfile.c | 2 +-
fs/ntfs/mft.c | 252 ++++++++++++++++++++++++++++++---------------
fs/ntfs/mft.h | 6 ++
fs/ntfs/super.c | 27 ++++-
fs/ntfs/volume.h | 4 +
11 files changed, 329 insertions(+), 140 deletions(-)
--
2.51.0
next reply other threads:[~2026-09-16 2:24 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-16 2:23 Baolin Liu [this message]
2026-09-16 2:23 ` [PATCH v2 1/5] ntfs: report allocation metadata errors to fsnotify Baolin Liu
2026-09-16 2:23 ` [PATCH v2 2/5] ntfs: report attribute " Baolin Liu
2026-09-16 7:38 ` Hyunchul Lee
2026-09-17 4:21 ` liubaolin
2026-09-16 2:23 ` [PATCH v2 3/5] ntfs: report inode metadata " Baolin Liu
2026-09-16 2:23 ` [PATCH v2 4/5] ntfs: report MFT " Baolin Liu
2026-09-16 2:23 ` [PATCH v2 5/5] ntfs: report shutdown " Baolin Liu
2026-09-16 2:40 ` [PATCH v2 0/5] ntfs: report filesystem errors through fsnotify liubaolin
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=20260916022345.1151836-1-liubaolin12138@163.com \
--to=liubaolin12138@163.com \
--cc=hyc.lee@gmail.com \
--cc=linkinjeon@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=liubaolin@kylinos.cn \
--cc=ntfs@lists.linux.dev \
/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®