DescriptionReplace 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
Committed: https://crrev.com/40b895fd4ef2aef2d1ae1ba2c66c2f9f58dc6310
Cr-Commit-Position: refs/heads/master@{#296840}
Patch Set 1 #
Total comments: 10
Patch Set 2 : Share hash for GetDents, add test #Patch Set 3 : Fix test #
Total comments: 4
Patch Set 4 : Fix nits #
Messages
Total messages: 15 (2 generated)
|