|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH v6 15/21] tools/xl: support new 9pfs backend xen_9pfsd
On 15.02.24 07:55, Juergen Gross wrote: Add support for the new 9pfs backend "xen_9pfsd". For this backend type the tag defaults to "Xen" and the host side path to "/var/log/xen/guests/<dom-name>". Do most of the default settings in libxl. Unfortunately the default path can't easily be set in libxl, as the domain name isn't available in the related 9pfs specific function. Settings the defaults in libxl requires to move the sanity checking of 9pfs parameters from xl to libxl, too. Signed-off-by: Juergen Gross <jgross@xxxxxxxx> Reviewed-by: Jason Andryuk <jandryuk@xxxxxxxxx> Sorry Anthony, just found your R-b: in my spam folder :-( Juergen --- V2: - test max_files and max_open_files, too (Jason Andryuk) V4: - fix man page to use the "xen_9pfsd" type due to idl limitation (Jason Andryuk) - set (most of) the defaults in libxl (Anthony Perard) --- docs/man/xl.cfg.5.pod.in | 36 +++++++++++++++++++++++++++++++++-- tools/libs/light/libxl_9pfs.c | 18 ++++++++++++++++++ tools/xl/xl_parse.c | 23 +++++++++++++++++++--- 3 files changed, 72 insertions(+), 5 deletions(-) diff --git a/docs/man/xl.cfg.5.pod.in b/docs/man/xl.cfg.5.pod.in index ea8d41727d..039e057318 100644 --- a/docs/man/xl.cfg.5.pod.in +++ b/docs/man/xl.cfg.5.pod.in @@ -772,10 +772,16 @@ settings, from the following list:=over 4 +=item B<type=TYPE>+ +The backendtype for the PV device. Supported values are B<qemu> and +B<xen_9pfsd>. The default is B<qemu>. + =item B<tag=STRING>9pfs tag to identify the filesystem share. The tag is needed on the-guest side to mount it. +guest side to mount it. For the backendtype of B<xen_9pfsd> the tag defaults to +"Xen".=item B<security_model="none"> @@ -785,12 +791,38 @@ squash or remap). =item B<path=STRING> -Filesystem path on the backend to export.+Filesystem path on the backend to export. For the backendtype of B<xen_9pfsd> +the path defaults to "@XEN_LOG_DIR@/guests/<guest-name>".=item B<backend=domain-id> Specify the backend domain name or id, defaults to dom0. +=item B<max-files=NUMBER>+ +Specify the maximum number of files below B<path>. A value of 0 (which +is the default) doesn't limit the number of files. Only valid for +B<type=xen_9pfsd>. + +=item B<max-open-files=NUMBER> + +Specify the maximum number of concurrently opened files below B<path>. +Multiple opens of the same file are counted individually. Only valid for +B<type=xen_9pfsd>, which has a default of B<max-open-files=5>. + +=item B<max-space=NUMBER> + +Specify the maximum used disk space in MiB below B<path>. A value of 0 (which +is the default) doesn't limit the usable disk space. Only valid for +B<type=xen_9pfsd>. + +=item B<auto-delete=BOOLEAN> + +When set the backend will delete the oldest file which is currently not +opened by the guest in case the disk space limit set via B<max-space> or the +file limit set via B<max-files> is being reached. Only valid for +B<type=xen_9pfsd>. + =back=item B<pvcalls=[ "backend=domain-id", ... ]> Attachment:
OpenPGP_0xB0DE9DD628BF132F.asc Attachment:
OpenPGP_signature.asc
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |