xinglin opened a new pull request #4034:
URL: https://github.com/apache/hadoop/pull/4034
<!--
Thanks for sending a pull request!
1. If this is your first time, please read our contributor guidelines:
https://cwiki.apache.org/confluence/display/HADOOP/How+To+Contribute
2. Make sure your PR title starts with JIRA issue id, e.g.,
'HADOOP-17799. Your PR title ...'.
-->
### Description of PR
Modified getTrashRoot/s to return viewFS path for the new trash location.
If CONFIG_VIEWFS_TRASH_ROOT_UNDER_MOUNT_POINT_ROOT is not set, return the
default trash root (a targetFS path) from targetFS.
When CONFIG_VIEWFS_TRASH_ROOT_UNDER_MOUNT_POINT_ROOT is set to true,
1) If path p is in a snapshot or encryption zone, or when it is in the
fallback FS, return the default trash root (a targetFS path) from
targetFS.
2) else, return a viewFS path for the trash root under the root of the
mount point (/mntpoint/.Trash/{user}).
### How was this patch tested?
Run unit tests manually from intellij.
--
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]