ThinkerLei commented on PR #6653: URL: https://github.com/apache/hadoop/pull/6653#issuecomment-2018103122
> This patch looks good to me. But I am curious about one thing: if the storage policy of `src` and `dst` are different, which storage policy is actually used to store the files under the `dst` after renaming `src` to `dst`? If > This patch looks good to me. But I am curious about one thing: if the storage policy of `src` and `dst` are different, which storage policy is actually used to store the files under the `dst` after renaming `src` to `dst`? @zhangshuyan0 Thanks for your comment. If the directory itself has a storagePolicy, then its own storagePolicy should be used to calculate the quota. If it is not set, look for the storagePolicy by its parent directory. If the parent directory also has no storagePolicy, it means none is set. Here, if the source INode and its subdirectories have a storagePolicy, use their own; if not set, use the storagePolicy of the target directory. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
