Skip to contentSkip to conversation

manpage: update FALLOC_FL_COLLAPSE_RANGE flag in fallocate

PATCH Namjae Jeon 1 participant 1 message May 27, 2014 VFS

lore
Share & tools
lore
#0 lore raw
Quoted 6 lines

[ Hmmmm - I just had a great idea - removing entire directory contents via punching blocks. No more "remove one dirent at a time" for rm -rf, just punch the directory from start to end and there goes millions of directory entries in a single syscall and a handful of transactions. FALLOC_FL_DIR_PUNCH, anyone? ]

Hi Dave.

I think that it is a great idea also.
BTW, FALLOC_FL_DIR_PUNCH should remove sub-directories using recursive function. If depth is very deep, Is it possible to make stack overflow issue ?

Thanks.