40 symlinks resolve and the 41st is refused. The same ELOOP comes from a self-link, a directory cycle, O_NOFOLLOW or a magic link, each measured five times.
TechBobby
Production Engineering Runbooks for Python, FastAPI & Cloud Systems
- Website
- techbobby.com · all feeds from this site
- Feed URL
https://techbobby.com/feed/
Read it in your FeedListing reader
Or add to: Feedly Inoreader Raw feed
Latest posts
-
ELOOP errno 40: 40 Hops Work, the 41st Refused – Which Loop You Hit
-
EAGAIN errno 11: Resource Temporarily Unavailable – The Bytes That Fit
A non-blocking pipe took 65,536 bytes and an AF_UNIX socket 180,224 before errno 11, while its readiness check gave up at 53,504. This page measures what fits.
-
ENOMEM errno 12: Cannot Allocate Memory – The Limit That Said No
Three of the four walls behind Cannot allocate memory answer with errno 12: the mapping ceiling, an address-space limit and a data limit. This page measures which call hits which wall.
-
EBADF errno 9: Bad File Descriptor – Three Families, One Number
One number covers a closed descriptor, a write to a read-only one and a seek on a pipe. This page measures which call answered what, and keeps the table the kernel does not.
-
EACCES errno 13: the Bit, the Directory, and the chmod That Ends It
A refused open answers one number and names no culprit: the kernel picks one of three classes and checks every directory in the path. This page walks that path and names the component that denies you.
-
EXDEV errno 18: Cross-Device rename, link, mv and a Safe Fallback
A name cannot cross a device: rename and link refuse with EXDEV, and a staged copy in the destination's own directory turns errno 18 into one atomic replace that keeps sparse holes.
-
ENOSPC errno 28: Full Blocks, Full Inodes, Deleted Files Still Open
A full mount answers three ways: 190,263 zero-byte files take every inode with the disk empty, a write lands only part of its bytes, and a deleted log keeps its blocks until the last descriptor closes.
-
ETXTBSY errno 26: 7 Writes Refused, Rename Works, Scripts Never Locked
A running binary refuses 7 write modes with errno 26; a rename replaces it, and a #! script is never locked - though bash reads it by offset.
-
Argument List Too Long (E2BIG): 131,071 Bytes Each, 2,097,152 in Total
One argument stops at 131,071 bytes; argv and envp share 2,097,152, and the measured boundary was 2,096,988.
-
mmap vs read(): 16,384 Pages, a Truncate SIGBUS, and ENOMEM at 65,482
One 64 MiB file read two ways: 1,025 faults cover 16,384 pages, a truncate raises SIGBUS, and 65,482 mappings end in ENOMEM.