[Support] Implement is_local_impl with AIX mntctl
authorHubert Tong <hubert.reinterpretcast@gmail.com>
Fri, 29 Mar 2019 23:32:47 +0000 (23:32 +0000)
committerHubert Tong <hubert.reinterpretcast@gmail.com>
Fri, 29 Mar 2019 23:32:47 +0000 (23:32 +0000)
commit24168852e8b52b0e11294e606f86f4dde195eee7
tree20ac0e8c483368f22fd80f5efec6ac90ed958fae
parent4d6fb5789fca8857c5161a621892b69a23a53d25
[Support] Implement is_local_impl with AIX mntctl

Summary:
On AIX, we can determine whether a filesystem is remote using `mntctl`.

If the information is not found, then claim that the file is remote
(since that is the more restrictive case). Testing for the associated
interface is restored with a modified version of the unit test from
rL295768.

Reviewers: jasonliu, xingxue

Reviewed By: xingxue

Subscribers: jsji, apaprocki, Hahnfeld, zturner, krytarowski, kristina, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D58801

llvm-svn: 357333
llvm/lib/Support/Unix/Path.inc
llvm/unittests/Support/Path.cpp