summaryrefslogtreecommitdiffhomepage
path: root/scripts/dev.sh
diff options
context:
space:
mode:
authorDean Deng <deandeng@google.com>2020-05-27 18:18:17 -0700
committergVisor bot <gvisor-bot@google.com>2020-05-27 18:19:38 -0700
commit32021bce9607e09f3d21d3d28047d49340da231e (patch)
tree94008e5ac3110fcbd88146879e4f622302eb2348 /scripts/dev.sh
parent835e8c89a5e8ed0008821b1036ce3f507394dce5 (diff)
Correctly update link and ref counts in rmdir.
Inotify sends events when a watch target is reaches a link count of 0 (see include/linux/fsnotify.h:fsnotify_inoderemove). Currently, we do not account for both dir/ and dir/.. in unlink, causing syscalls/linux/inotify.cc:WatchTargetDeletionGeneratesEvent to fail because the expected inotify events are not generated. Furthermore, we should DecRef() once the inode reaches zero links; otherwise, we will leak a reference. PiperOrigin-RevId: 313502091
Diffstat (limited to 'scripts/dev.sh')
0 files changed, 0 insertions, 0 deletions