ksmbd_decompress_request(9)
β¨ NAME β¨
ksmbd_decompress_request β replace a compressed request with its SMB2 PDU. This page is from the Kernel API Manual, bestie π
π SYNOPSIS π
int ksmbd_decompress_request (struct ksmbd_conn *conn );
π¦ ARGUMENTS π¦
connβ the connection that owns the current RFC1002 request buffer, periodt π«Ά
πΈ DESCRIPTION πΈ
Okay so hereβs the vibe: this function takes a compressed request and gives it the full main-character glow-up into its SMB2 PDU form β¨
It derives the uncompressed size from the transform variant, enforces ksmbdβs normal message limits, and asks the common decoder to validate every payload. No skipping the vibe check, ngl π
On success, it replaces conn->request_buf with a regular RFC1002-framed SMB2 message. The way that works means the rest of the request path needs no compression awareness at all π iconic behavior, honestly.
π RETURN π
0 on success, otherwise a negative errno. Thatβs it, thatβs the tea π
π SEE ALSO π
- Kernel file
./fs/smb/server/compress.c ksmbd_decompress_work_request(9)ksmbd_compress_response(9)
Source/version: ./fs/smb/server Β· Date: October 2026 Β· Page: ksmbd_decompress_request(9) β mwah, go read the kernel docs 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