Re:Quickly restoring 1M+ files from backup
by jeremyiah on Monday December 29, 2025 @08:32AM
(#46420549)
So, what is the solution for the SMB part?
[ Parent
| on HN ]
Re:Quickly restoring 1M+ files from backup
by akotti on Monday December 29, 2025 @08:51AM
(#46420753)
As far as I remember, in that case you still will be able to get a directory handle (with appropriate permissions), but calling FlushFileBuffers() on it is going to fail.
So you can test for that in advance before the restore and switch to syncing each file individually. Or accept that the approach only works locally and do nothing more, since durability over SMB is a questionable thing.