abiosoft / abiosoft/colima

All inotify filesystem events are chmod/attribute events

Abierto
#1,244 7 comentarios 5 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Go
Estrellas
30.8k
Forks
613
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

### 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_

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.