abiosoft / abiosoft/colima

All inotify filesystem events are chmod/attribute events

Đang mở
#1,244 7 bình luận 5 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Go
Star
30.8k
Fork
613
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

### Description

As reported [here](https://github.com/abiosoft/colima/issues/261#issuecomment-1731966093) by @ploxiln colima only seems to forward `ATTRIB` events, even when actually modifying files.

See this log:
```
root@843c34dbbfff:/container# inotifywait -m .
Setting up watches.
Watches established.
./ ATTRIB main.go
./ ATTRIB main.go
```

I have a file watcher utility that ignores these and only recompiles on modify events, so it would be nice if this could be addressed.

### Version

```
colima version && limactl --version && qemu-img --version
colima version 0.8.1
git commit: 96598cc5b64e5e9e1e64891642b91edc8ac49d16

runtime: docker
arch: aarch64
client: v27.4.1
server: v27.4.0
limactl version 1.0.3
zsh: command not found: qemu-img
```

(I do not use qemu but vz and rosetta)

### Operating System

- [ ] macOS Intel <= 13 (Ventura)
- [ ] macOS Intel >= 14 (Sonoma)
- [ ] Apple Silicon <= 13 (Ventura)
- [X] Apple Silicon >= 14 (Sonoma)
- [ ] Linux

### Output of `colima status`

```
colima status
INFO[0000] colima is running using macOS Virtualization.Framework
INFO[0000] arch: aarch64
INFO[0000] runtime: docker
INFO[0000] mountType: virtiofs
INFO[0000] socket: unix:///Users/pvansanten/.colima/default/docker.sock
```

### Reproduction Steps

1. Start a container with inotify-tools installed and a mount from the host machine
2. Exec into the container and run `inotifywait -m -r .`
3. On the host machine go to the mounted directory and run: `touch test && echo hello >> test`
4. Notice the events from the inotifywait command:

```
inotifywait -m -r .
Setting up watches. Beware: since -r was given, this may take a while!
Watches established.
./ ATTRIB test
```

### Expected behaviour

I expect the container inotifywait command to issue 2 events:
- A creation event for the file
- A modification event for the file

I do not expect an attribute event

### Additional context

_No response_

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.