I am writing a startup script for a daemon that runs inside an embedded Linux installation. That means that chmod is from BusyBox v1.24.2.
I don't want to cause any unnecessary write cycles on flash media.
That is why I am wondering whether issuing a chmod 03755 (with umask 022) on a directory will result in any disk write I/O.
In other words is it necessary to insert a check whether the directory permissions are already setup correct and only execute the chmod when the permissions are incorrect?
Or is a directory permissions check wasted effort because busybox chmod will not result in any disk write I/O when permissions don't need any change?