fserror_report(9)
π fserror_report(9) π
okay so bestie, welcome to the Kernel API Manual entry for fserror_report β literally the function that reports a filesystem error of some kind. no cap, thatβs the whole vibe.
β¨ NAME β¨
fserror_report β report a filesystem error of some kind π
π SYNOPSIS π
void fserror_report (struct super_block *sb , struct inode *inode , enum
fserror_type type , loff_t pos , u64 len , int error , gfp_t gfp );
πΈ ARGUMENTS πΈ
sbβ superblock of the filesystem, obvi π«Άinodeβ inode within that filesystem, if applicabletypeβ the type of error encountered, gotta know what kind of mess weβre inposβ start of the inode range affected, if applicablelenβ length of the inode range affected, if applicableerrorβ the error number encountered; it must be negative, no exceptions πgfpβ memory allocation flags for conveying the event to a worker, since this function can be called from atomic contexts
π¦ DESCRIPTION π¦
so fserror_report reports the details of a filesystem error to the super_operations::report_error callback if itβs present, and also to fsnotify for distribution to userspace. β¨ sb, gfp, type, and error must all be specified β every single time. for file I/O errors, the inode, pos, and len fields must also be specified. for file metadata errors, inode must be specified. and if inode is not NULL, then inode->i_sb must point to sb β thatβs the vibe check it has to pass, fr fr.
reporting work is deferred to a workqueue to ensure that ->report_error is called from process context without any locks held. an active reference to the inode is maintained until event handling is complete, and unmount will wait for queued events to drain. periodt. π
π₯ SEE ALSO π₯
- Kernel file
./fs/fserror.cβ go read it, bestie π
mwah π this page is the fserror_report(9) entry from source/version ./fs, dated October 2026. bye bestie, go report those errors responsibly π«Άπ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms