fiemap_prep(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

fiemap_prep(9) from the Kernel API Manual β€” okay bestie, this one is all about checking the validity of requested flags for fiemap. It's giving flag-bouncer-at-the-club energy πŸ’….

πŸŽ€ SYNOPSIS πŸŽ€

int fiemap_prep (struct inode *inode , struct fiemap_extent_info
*fieinfo , u64 start , u64 *len , u32 supported_flags );

🌸 ARGUMENTS 🌸

  • inode β€” the inode to operate on 🫢.
  • fieinfo β€” the fiemap context passed into ->fiemap ✨.
  • start β€” start of the mapped range 🌈.
  • len β€” length of the mapped range, and yes, it can be truncated by this function πŸ‘€.
  • supported_flags β€” the set of fiemap flags that the file system understands πŸ’–.

πŸ”₯ DESCRIPTION πŸ”₯

Okay so this function must be called from each ->fiemap instance to validate the fiemap request against the file system parameters. Mandatory behavior, no cap 😌.

It returns 0 on success, or a negative error on failure. That's the whole vibe πŸ’€βœ¨.

πŸ¦‹ SEE ALSO πŸ¦‹


mwah πŸ’‹ β€” this iconic page is sourced from ./fs, dated October 2026, and it's literally titled fiemap_prep(9). periodt πŸ§šπŸ’œ

πŸ“¦ where this page comes from