cifs_backup_query_path_info(9)
π cifs_backup_query_path_info(9) β the kernel API manual, but make it make sense
okay bestie, welcome to the cifs_backup_query_path_info page from the kernel API manual β¨ this one's a little helper function living its best life in the CIFS/SMB client code, and honestly? it's giving "backup plan energy" and we love that for it π«Ά
β¨ NAME β¨
cifs_backup_query_path_info β the SMB1 fallback code that goes and gets your ino π₯
πΈ SYNOPSIS πΈ
int cifs_backup_query_path_info (int xid , struct cifs_tcon *tcon ,
struct super_block *sb , const char *full_path , void **resp_buf ,
FILE_ALL_INFO **data );
π ARGUMENTS π
so there are like, a whole squad of parameters here, let's meet them π
xidβ the transaction id, aka the little name tag that lets the original request be identified in logs. it's how we find our girl in the crowd, iykyk πtconβ all the info about the server share we've got mounted. yes, that's a thing we keep around, it's important πsbβ the superblock, which stores stuff like how much disk space is available. lowkey the vibe keeper of the whole filesystem π¦full_pathβ the name of the file we're pulling metadata for. the actual star of the show, the main character β¨resp_bufβ this one gets set to the cifs resp buf, and heads up: it needs to be freed withcifs_buf_releasewhen you're done withdata. not me reminding you to clean up after yourself π please free your buffers bestiedataβ gets set to the search info result buffer. that's where the good stuff lands π
π DESCRIPTION π
so basically this is the fallback code: it gets the file metadata for you when we don't have access to full_path (that's EACCES, bestie, the classic "permission denied" moment π) and we have backup creds. so like, when the front door's locked, we use the backup key π slay
no cap, this is a fallback path β it exists specifically for the EACCES + backup creds situation, so don't come crying to it when everything's fine π
π¦ SEE ALSO π¦
- Kernel file
./fs/smb/client/inode.cβ go read it, it's right there π cifs_wait_bit_killable(9)β another one from the neighborhood, say hi π
and that's the whole page, periodt. π« this little icon came to us courtesy of ./fs/smb/client, in the October 2026 edition of the docs β mwah, tysm for reading, ily, go free your buffers ππ
π¦ 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