Hello,
It's not clear here why you're asking to prevent access or modification of files during storage migration?
Storage Migration Service The target server can take over the identity of the source server, users and applications can access existing data without changing anything, it is important to note that the target server should not contain any production data or connecting users, as this data may be overwritten.
Best Regards,
Wesley Li