cifs_backup_query_path_info(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 with cifs_buf_release when you're done with data. not me reminding you to clean up after yourself 😭 please free your buffers bestie
  • data β€” 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