Replace allocated ino with hash of path.
HTML5FS (PPAPI) does not provide an INO so it is impossible to determine a files uniqueness. In addition, node information does not persist in memory since nodes could be transparently destroyed from JavaScript, thus creating leaks. Because of this the current stack based INO allocation causes sequentially accesed file handles to report the same INO. HTML5FS (including media galleries) does not traverse links. This implies that all paths normalized to the mount are unique. We use this property to generate a 64 bit hash. R=binji@chromium.org BUG=414938 Review URL: https://codereview.chromium.org/605513002 Cr-Commit-Position: refs/heads/master@{#296840}
Showing
Please register or sign in to comment