OSDN Git Service

[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)
commita61db08d2e8bd0ee892cbf5009935ab87a66646a
treedb8ebb194818e8566eecdc835d94bd217c4a23ff
parent7bbe85d3671765ea448921173b0170e6eeacbd21
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@357333 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/Unix/Path.inc
unittests/Support/Path.cpp