nilfs_dat_translate(9)
π nilfs_dat_translate(9)
okay so this is a page from the Kernel API Manual, and it's literally the main character of virtual-to-real block number translation. No cap. π¦
NAME
nilfs_dat_translate β translate a virtual block number to a block number. That's the whole assignment, bestie. π
SYNOPSIS
int nilfs_dat_translate (struct inode *dat , __u64 vblocknr , sector_t
*blocknrp );
ARGUMENTS
datβ DAT file inode. iconic.vblocknrβ virtual block number. the number that needs its real-block glow-up β¨blocknrpβ pointer to a block number. it's giving "here's where the answer goes" π
DESCRIPTION
nilfs_dat_translate maps the virtual block number vblocknr to the corresponding block number. The block number associated with vblocknr is stored in the place pointed to by blocknrp. Obsessed with this little mapping moment, fr fr. π₯
RETURN
0 on success, or one of the following negative error codes on failure:
-EIOβ I/O error (including metadata corruption). π-ENOENTβ A block number associated withvblocknrdoes not exist. π-ENOMEMβ Insufficient memory available. π
SEE ALSO
Kernel file ./fs/nilfs2/dat.c β struct nilfs_dat_info(9), nilfs_dat_mark_dirty(9), nilfs_dat_freev(9), nilfs_dat_move(9), nilfs_dat_read(9). Go read the squad, iykyk. π
mwah π β source/version: ./fs/nilfs2, date: October 2026, page: nilfs_dat_translate(9). byeee, bestie π«Ά
π¦ 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