• Josh Simmons's avatar
    smbfs: Use stable mount path for smbfs shares · 8c6afe3a
    Josh Simmons authored
    Uses a combination of share-specific values (user hash, URL, source,
    authentication type, workgroup & username) as input to a SHA256 hash
    that is then used to create a mount path that does not change across
    mount / unmount cycles.
    
    Test: unit_tests --gtest_filter="*SmbFs*"
    Test: Deploy to DUT, ensure SMB share mounts successfully
    Test: Mount share, unmount, remount, ensure mount path remains constant
    Bug: 1130884
    Change-Id: I24603cc9d09609e65c3b869c3c42142c30425788
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2430539
    Commit-Queue: Josh Simmons <simmonsjosh@google.com>
    Reviewed-by: default avatarAnand K Mistry <amistry@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#815026}
    8c6afe3a
smbfs_share.h 6.04 KB