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).
Differential D58801
[Support] Implement is_local_impl with AIX mntctl hubert.reinterpretcast on Feb 28 2019, 4:19 PM. Authored by
Details 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).
Diff Detail
Event Timeline
Comment Actions Yes, testing this is hard because we can have all possible combinations of the source and the build directory being remote / local. I think creating a directory and checking that a contained file returns the same value as the directory should work. However I'm not sure how much value this adds. If it's reasonably easy to implement I think it makes sense, but personally I wouldn't see it as requirement for this patch
Comment Actions Address review comments, add test, and apply style changes
Comment Actions @xingxue, thanks for the review. I've updated the patch; please let me know if you have concerns with the updates. I'll probably commit this later this week.
|
sys/statfs.h includes sys/types.h, which contains this typedef. Was there a reason why it was put here between the two headers?