Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 897308 Details for
Bug 935726
cargo.eclass: cannot patch crates (e.g. for app-emulation/virtiofsd)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
python wrapper for virtiofsd
vfsd.py (text/x-python), 1.28 KB, created by
Huy Logan
on 2024-07-08 02:43:49 UTC
(
hide
)
Description:
python wrapper for virtiofsd
Filename:
MIME Type:
Creator:
Huy Logan
Created:
2024-07-08 02:43:49 UTC
Size:
1.28 KB
patch
obsolete
>#!/usr/bin/python > >import socket >import os >import grp >import sys >import multiprocessing >import signal > ># /run/vfsd/${1} /mnt/${1} >if __name__ == '__main__': > try: > share = sys.argv[1] > vfsd_daemon = '/usr/libexec/virtiofsd' > socket_path = '/run/vfsd/' + share > shared_path = '/mnt/' + share > kvm_gid = grp.getgrnam('kvm').gr_gid > print(socket_path) > if os.path.exists(socket_path): > os.unlink(socket_path) > signal.signal(signal.SIGCHLD, signal.SIG_IGN) > os.umask(0o1117) > os.setregid(kvm_gid, kvm_gid) > sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) > sock.bind(socket_path) > sock.listen(1) > sem = multiprocessing.Semaphore(1) > while True: > sem.acquire() > newpid = os.fork() > if newpid == 0: > (connection, client_address) = sock.accept() > sock.close() > connection.settimeout(0) > os.set_inheritable(connection.fileno(), True) > args = [vfsd_daemon, '--log-level', 'info', '--fd', str(connection.fileno()), '--shared-dir', shared_path, '--xattr'] > print(args) > sem.release() > os.execv(vfsd_daemon, args) > except: > raise
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 935726
: 897308 |
897309
|
897310
|
897311