# fs: Don't opt into polling for \`virtiofs\` based file systems \(\#57184\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/ad042e5c9de540ec3ea61188e950a6c955f00938)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: ad042e5c9de540ec3ea61188e950a6c955f00938

Requested commit: ad042e5c9de540ec3ea61188e950a6c955f00938

Commit: ad042e5c9de540ec3ea61188e950a6c955f00938

Tree: 346a803d38be6131913f944ba3a8991118493cff

Author: Ben Kunkle

Committer: GitHub

## Message

```
fs: Don't opt into polling for `virtiofs` based file systems (#57184)

Technically we don't know if a `virtiofs` file system supports `inotify`
or not, but it seems like it's mostly used inside virtual machines
provided by:
- OrbStack (`inotify` works)
- Docker Desktop (`inotify` works)
- Lima (`inotify` works with flag)
- Colima (`inotify` works with flag)
- QEMU + virtiofs setup (`inotify` doesn't work without extra setup)

Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Closes #57103 

Closes FR-9

Release Notes:

- Fixed an issue where file system watching would default to the polling
backend inside of `OrbStack` VMs on MacOS
```

## Parents

- [40d3c79f2f997ac5611975a27cc15d016ff600fe](https://git.cafe/gitcafe/zed/commit/40d3c79f2f997ac5611975a27cc15d016ff600fe?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/ad042e5c9de540ec3ea61188e950a6c955f00938?format=markdown)
