Filesystem Flag dir_index

Hello,

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:

umount /dev/md1
tune2fs -O dir_index /dev/md1 #add feature to FS
e2fsck -D /dev/md1 # Create indexes
mount /dev/md1

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?

Hello,

I haven’t try that. Let’s see if any of the users can share some information about it.

A good question to also ask is why WD do not set this flag on the filesystem? This this omission deliberate or accidental?