mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v1 0/2] ntfs: report filesystem errors to fsnotify
@ 2026-08-26 12:27 Baolin Liu
  2026-08-26 12:27 ` [PATCH v1 1/2] ntfs: report volume " Baolin Liu
  2026-08-26 12:27 ` [PATCH v1 2/2] ntfs: report forced shutdown " Baolin Liu
  0 siblings, 2 replies; 5+ messages in thread
From: Baolin Liu @ 2026-08-26 12:27 UTC (permalink / raw)
  To: linkinjeon, hyc.lee; +Cc: ntfs, linux-kernel, liubaolin12138, Baolin Liu

From: Baolin Liu <liubaolin@kylinos.cn>

The ntfs driver reports volume errors only to dmesg. These two patches
wire up the generic fserror infrastructure so that health monitoring
daemons watching a mount with fanotify(FAN_FS_ERROR) also learn about
them.

Both hook the flag-setting helpers rather than individual call sites,
so no callers change: NVolSetErrors() for metadata corruption, and
NVolSetShutdown() for forced shutdown, which also covers the
->shutdown super_operation.

Follow-up work, if this direction is acceptable: reporting corrupt
inodes with fserror_report_file_metadata() so that events carry a
useful FID.

Baolin Liu (2):
  ntfs: report volume errors to fsnotify
  ntfs: report forced shutdown to fsnotify

 fs/ntfs/super.c  | 15 +++++++++++++++
 fs/ntfs/volume.h | 29 +++++++++++++++++++++++++++--
 2 files changed, 42 insertions(+), 2 deletions(-)

-- 
2.51.0


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

end of thread, other threads:[~2026-09-01  9:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-26 12:27 [PATCH v1 0/2] ntfs: report filesystem errors to fsnotify Baolin Liu
2026-08-26 12:27 ` [PATCH v1 1/2] ntfs: report volume " Baolin Liu
2026-08-31  6:38   ` Hyunchul Lee
2026-09-01  9:48     ` liubaolin
2026-08-26 12:27 ` [PATCH v1 2/2] ntfs: report forced shutdown " Baolin Liu

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®