↓ Skip to main content
  1. Tags/

Systems

2026

Postmortem: When df -h Lies — 5.71M Files Burned All Inodes
Technical Practice · 2026-10-26 · 11 分钟

Postmortem: When df -h Lies — 5.71M Files Burned All Inodes

A sudden production incident took down the user authentication system: gateways threw 502 Bad Gateway, while the auth service (Casdoor) returned persistent 503 Service Unavailable. Checking the root partition with df -h showed only 40% disk utilization, with 55GB of free space remaining. Yet system calls across the host crashed with no space left on device (ENOSPC). The culprit was a 6-month-old legacy PHP container. Bypassing broken garbage collection and battered by anonymous crawlers, it quietly generated 5.71 million zero-byte session files in a single flat directory, devouring all 6.35 million inodes available on the host filesystem.

2261 字 阅读 ➔
When git add Exits 0 but Stages Nothing: Debugging Git Stat-Cache
Technical Practice · 2026-10-09 · 7 分钟

When git add Exits 0 but Stages Nothing: Debugging Git Stat-Cache

When writing automation scripts or working in the terminal, developers assume a simple rule: as long as git add <file> exits with code 0, the change is staged. Today, while updating author metadata on the blog, I hit an elusive silent failure: real file modifications on disk, git diff clearly printing the hunk, git add returning 0, yet git status stubbornly insisting the file was untracked, with git diff --cached remaining completely empty.

1356 字 阅读 ➔