aboutgitcodebugslistschat
path: root/contrib/qemu
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2026-05-12 15:52:54 +1000
committerStefano Brivio <sbrivio@redhat.com>2026-05-16 15:47:07 +0200
commit3c6e797f7551fd7258b18b3710349fc8db3d595a (patch)
tree4be35bcf62b201e048d8d59d7bd5d5d3efbb2d21 /contrib/qemu
parent1254a1f9f9867a9d9022e709549388d9cdf4f7b4 (diff)
downloadpasst-3c6e797f7551fd7258b18b3710349fc8db3d595a.tar
passt-3c6e797f7551fd7258b18b3710349fc8db3d595a.tar.gz
passt-3c6e797f7551fd7258b18b3710349fc8db3d595a.tar.bz2
passt-3c6e797f7551fd7258b18b3710349fc8db3d595a.tar.lz
passt-3c6e797f7551fd7258b18b3710349fc8db3d595a.tar.xz
passt-3c6e797f7551fd7258b18b3710349fc8db3d595a.tar.zst
passt-3c6e797f7551fd7258b18b3710349fc8db3d595a.zip
passt-repair: Simplify construction of Unix path from inotify
When passt-repair is invoked with a directory name, it waits for a Unix socket to appear in that directory. We need to build the Unix path name from the given directory, plus the stem file name from the inotify event. Currently, we build that path into a temporary buffer of size PATH_MAX, then move it into the smaller buffer inside the Unix sockaddr. There's no particular reason for this two step process, we can build the address directly within the sockaddr_un. This will give a slightly different error if the constructed path exceeds the maximum length of a Unix address, but it will fail either way so it doesn't really matter. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'contrib/qemu')
0 files changed, 0 insertions, 0 deletions