I need to rsync about 2M small files, all in nested directory structures. One way to speed up transfer is to ensure that the dir_index flag is set on the filesystem. On my DL2100 it is not:
tune2fs -l /dev/md1 | grep features
Filesystem features: has_journal ext_attr filetype needs_recovery meta_bg extent 64bit flex_bg sparse_super large_file huge_file uninit_bg dir_nlink extra_isize
It’s easy enough to add the flag. Here are the commands I would run on a Linux server:
tune2fs -O dir_index /dev/md1 #add feature to FS
e2fsck -D /dev/md1 # Create indexes
My question: is this command set ok to run on my NAS? Can I unmount /dev/md1, run the command set, and not be concerned? Or are there any other commands I need to execute that are particular to the NAS?