~/talk

Racing The File System

links:none on file
slides:none on file

Filesystems change underfoot; the talk shows concrete race failures (split reads, TOCTOU, directory-delete races) and practical fixes: use directory-handle operations (openat/unlinkat style), prefer FD-based sibling ops, and use atomic replace-via-rename. Boost.AFIO introduced as a portable library implementing these idioms. Windows supports atomic rename since Vista (use SetFileInformationByHandle with REPLACE_IF_EXISTS); Linux/Windows support empty-string FD-to-path tricks. Benchmarks: lock-file perf: ~2.5K Win, 4K Linux, 10K FreeBSD and the AFIO-backed transactional key/value prototype works in tests.

AI-written summary · about

  1. 0:00Intro
  2. 3:02What is a race: Classic example
  3. 4:05Concurrent i/o
  4. 8:54Deleting a directory tree on Windows
  5. 15:18Why do filing system races matter?
  6. 16:40Security: Time Of Check To Time Of Use (TOCTTOU)
  7. 21:52Relative paths
  8. 23:11Avoid paths altogether
  9. 25:40Inode checking
  10. 33:20Atomic renaming
  11. 37:30Locking
  12. 40:28Design pattern 5a: Lock files
  13. 45:18Design pattern 5b: Byte range locks
  14. 51:02Design pattern 5c: atomic append + extent deallocation
  15. 51:55Design pattern 5d: Ordering guarantees
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.