Planning for FSA hydration – reporting
Planning to hydrate a FSA file share and wanted to produce a before state report with list of all stub files. Based on few forum posts here, came up with this,
$tstfile = Get-Item -Path "F:\Users\testusr\DA\photos\photos_3.doc"
if ( $tstfile.Attributes.HasFlag([System.IO.FileAttributes]5632) ) {
write-host "File is a stub"
}
ReparsePoint=1024 / SparseFile=512 / Offline=4096
1. Will this logic capture a stub file accurately?
2. Or Ok use ( $tstfile.Attributes.HasFlag([System.IO.FileAttributes]1536) ignoring Offline attribute?
3. Once the hydration job is complete, to verify, use before report list of files as input to make sure results return a null value. Will this be an accurate assessment of successful hydration?
4. To look for any failures, use the before report list of files as input and look for any files with size 0 – will this be an accurate assessment of reporting hydration failures?
Thanks …