Currently, RawLocalFileSystem.DeprecatedRawLocalFileStatus#loadPermissionInfo is implemented as forking an ls command and parsing the output. This was observed to be a bottleneck in
YARN-3491. This issue proposes an optional native implementation of a stat syscall through JNI. We would maintain the existing code as a fallback for systems where the native code is not available.