hadoop/hadoop-common-project
Xing Lin ecafd38c09
HADOOP-18144: getTrashRoot in ViewFileSystem should return a path in ViewFS. (#4123)
To get the new behavior, define fs.viewfs.trash.force-inside-mount-point to be true.

If the trash root for path p is in the same mount point as path p,
and one of:
* The mount point isn't at the top of the target fs.
* The resolved path of path is root (eg it is the fallback FS).
* The trash root isn't in user's target fs home directory.
get the corresponding viewFS path for the trash root and return it.
Otherwise, use <mnt>/.Trash/<user>.

Signed-off-by: Owen O'Malley <oomalley@linkedin.com>
(cherry picked from commit 8b8158f02d)

Co-authored-by: Xing Lin <xinglin@linkedin.com>
2022-03-31 20:26:09 +00:00
..
hadoop-annotations Preparing for 3.3.3 development 2021-11-16 16:02:34 -08:00
hadoop-auth Preparing for 3.3.3 development 2021-11-16 16:02:34 -08:00
hadoop-auth-examples Preparing for 3.3.3 development 2021-11-16 16:02:34 -08:00
hadoop-common HADOOP-18144: getTrashRoot in ViewFileSystem should return a path in ViewFS. (#4123) 2022-03-31 20:26:09 +00:00
hadoop-kms HADOOP-18040. Use maven.test.failure.ignore instead of ignoreTestFailure (#3774) 2021-12-10 01:38:26 +09:00
hadoop-minikdc Preparing for 3.3.3 development 2021-11-16 16:02:34 -08:00
hadoop-nfs Preparing for 3.3.3 development 2021-11-16 16:02:34 -08:00
hadoop-registry HADOOP-18040. Use maven.test.failure.ignore instead of ignoreTestFailure (#3774) 2021-12-10 01:38:26 +09:00
pom.xml Preparing for 3.3.3 development 2021-11-16 16:02:34 -08:00