diff options
author | 2024-02-12 19:11:49 -0500 | |
---|---|---|
committer | 2024-02-23 09:40:26 +0100 | |
commit | 9086b2d9e9f3da0b0f939aa1d7ff74e9bf5b54c8 (patch) | |
tree | ef69159f74f0fa9519a9324a255dd7b400ded4db /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | virtiofs: export filesystem tags through sysfs (diff) | |
download | wireguard-linux-9086b2d9e9f3da0b0f939aa1d7ff74e9bf5b54c8.tar.xz wireguard-linux-9086b2d9e9f3da0b0f939aa1d7ff74e9bf5b54c8.zip |
virtiofs: emit uevents on filesystem events
Alyssa Ross <hi@alyssa.is> requested that virtiofs notifies userspace
when filesytems become available. This can be used to detect when a
filesystem with a given tag is hotplugged, for example. uevents allow
userspace to detect changes without resorting to polling.
The tag is included as a uevent property so it's easy for userspace to
identify the filesystem in question even when the sysfs directory goes
away during removal.
Here are example uevents:
# udevadm monitor -k -p
KERNEL[111.113221] add /fs/virtiofs/2 (virtiofs)
ACTION=add
DEVPATH=/fs/virtiofs/2
SUBSYSTEM=virtiofs
TAG=test
KERNEL[165.527167] remove /fs/virtiofs/2 (virtiofs)
ACTION=remove
DEVPATH=/fs/virtiofs/2
SUBSYSTEM=virtiofs
TAG=test
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions