diff options
author | Nicolas Lacasse <nlacasse@google.com> | 2018-10-15 17:41:34 -0700 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2018-10-15 17:42:30 -0700 |
commit | ecd94ea7a693d49a0edce8607241a8e2ac22bfe0 (patch) | |
tree | da07122898da0d3770f8cdbfdf967b1a3242db3d /g3doc | |
parent | 3f0532595679c388362203bbce1d4b6c4d2e336b (diff) |
Clean up Rename and Unlink checks for EBUSY.
- Change Dirent.Busy => Dirent.isMountPoint. The function body is unchanged,
and it is no longer exported.
- fs.MayDelete now checks that the victim is not the process root. This aligns
with Linux's namei.c:may_delete().
- Fix "is-ancestor" checks to actually compare all ancestors, not just the
parents.
- Fix handling of paths that end in dots, which are handled differently in
Rename vs. Unlink.
PiperOrigin-RevId: 217239274
Change-Id: I7a0eb768e70a1b2915017ce54f7f95cbf8edf1fb
Diffstat (limited to 'g3doc')
0 files changed, 0 insertions, 0 deletions