nilfs_ifile_create_inode(9)
π¦ nilfs_ifile_create_inode(9) β the "make a new disk inode" girlie π
okay so this is a kernel API manual page, and yes bestie, we're in nilfs_ifile_create_inode(9) territory β section 9, kernel-space, very demure, very minding-my-own-business-in-the-filesystem. β¨
π NAME π
nilfs_ifile_create_inode β literally just create a new disk inode. that's the whole vibe. π«Ά
πΈ SYNOPSIS πΈ
int nilfs_ifile_create_inode (struct inode *ifile , u64 *out_ino ,
struct buffer_head **out_bh );
likeβ¦ she takes three things and gives you back an int. iconic behavior honestly. π
β¨ ARGUMENTS β¨
ifileβ the ifile inode. that's your main character right there, she's the metadata file doing all the work πout_inoβ a pointer to a variable where the inode number gets stored. your little souvenir πout_bhβ abuffer_headthat contains the newly allocated disk inode. yes, the whole buffer, no she's not doing halves π¦
π DESCRIPTION π
so nilfs_ifile_create_inode allocates a new inode in the ifile metadata file β and then it does two whole things for you, because she's an overachiever:
- it stores the inode number in the variable pointed to by
out_inoβ - and it stores the ifile's buffer with the disk inode in the location pointed to by
out_bhπ
that's it. that's the function. no cap, she's efficient. π
π₯ RETURN π₯
returns 0 on success, or one of these negative error codes if things go sideways (and not in the cute way π):
-EIOβ I/O error (including metadata corruption π). yeah, corruption. we don't love that.-ENOMEMβ insufficient memory available. the girlies are out of RAM, tragic π-ENOSPCβ no inode left. none. zero. empty. gone. π
ngl, if you get -EIO because of metadata corruption, that's a whole situation β handle it, don't ignore it bestie π
π SEE ALSO π
go read these next, iykyk:
- Kernel file
./fs/nilfs2/ifile.c struct nilfs_ifile_info(9)nilfs_ifile_delete_inode(9)nilfs_ifile_count_free_inodes(9)nilfs_ifile_read(9)
π sign-off π
and that's the page!! she lives in ./fs/nilfs2, dated October 2026, and she's part of the Kernel API Manual β so next time you're deep in nilfs2 inode allocation, you'll know exactly what's up. periodt. πβ¨π§
mwah π go create some inodes 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