ocfs2_prepare_orphan_dir(9)
β¨ ocfs2_prepare_orphan_dir(9) β¨
okay bestie, welcome to this lil' corner of the Kernel API Manual β we're talking about ocfs2_prepare_orphan_dir(9), and it's literally the setup step for putting an orphan into an orphan directory. π«Ά
πΈ NAME πΈ
ocfs2_prepare_orphan_dir β prepare an orphan directory for insertion of an orphan. No cap, that's the whole vibe: prep the dir, then the orphan can go in. π
β¨ SYNOPSIS β¨
int ocfs2_prepare_orphan_dir (struct ocfs2_super *osb , struct inode
**ret_orphan_dir , u64 blkno , char *name , struct
ocfs2_dir_lookup_result *lookup , bool dio );
π¦ ARGUMENTS π¦
osbβ ocfs2 file system. That's the fs context, bestie. πret_orphan_dirβ Orphan dir inode - returned locked! π Like, it comes back to you already locked, okay?blknoβ Actual block number of the inode to be inserted into orphan dir. The real block number, not a vibe. βnameβ Buffer to store the name of the orphan. Gotta have somewhere to put the name. πlookupβ dir lookup result, to be passed back into functions likeocfs2_orphan_add. Keep it and pass it along, iykyk. π¦dioβ Flag indicating if direct IO is being used or not. Direct IO: yes or no, that's the flag. π
π DESCRIPTION π
Returns zero on success and the ret_orphan_dir, name and lookup fields will be populated. Slay β zero means success, and those fields get filled in. β¨
Returns non-zero on failure. So if it's not zero, it's giving failure, bestie. π
π SEE ALSO π
- Kernel file
./fs/ocfs2/namei.c ocfs2_prep_new_orphaned_file(9)
xoxo, your Unix bestie π β source/version: ./fs/ocfs2, date: October 2026, page: ocfs2_prepare_orphan_dir(9). periodt. π
π¦ 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