From: Samuel Thibault <samuel.thibault@ens-lyon.org>
To: Juergen Gross <jgross@suse.com>
Cc: Andrew Cooper <andrew.cooper3@citrix.com>,
minios-devel@lists.xenproject.org,
xen-devel@lists.xenproject.org, wl@xen.org
Subject: Re: [PATCH v2 3/7] Mini-OS: add support for runtime mounts
Date: Fri, 10 Feb 2023 13:44:44 +0100 [thread overview]
Message-ID: <20230210124444.bc7siuuj5dwgf3pb@begin> (raw)
In-Reply-To: <8c007a9a-1466-f200-d7f6-27c81622ef27@suse.com>
Juergen Gross, le ven. 10 févr. 2023 13:14:20 +0100, a ecrit:
> On 10.02.23 12:43, Andrew Cooper wrote:
> > On 10/02/2023 10:46 am, Juergen Gross wrote:
> > > diff --git a/lib/sys.c b/lib/sys.c
> > > index 2f33c937..dc8a8c69 100644
> > > --- a/lib/sys.c
> > > +++ b/lib/sys.c
> > > @@ -339,7 +339,14 @@ static int open_mem(struct mount_point *mnt, const char *pathname, int flags,
> > > return fd;
> > > }
> > > -static struct mount_point mount_points[] = {
> > > +#ifdef CONFIG_CONSFRONT
> > > +#define STATIC_MNTS 4
> > > +#else
> > > +#define STATIC_MNTS 2
> > > +#endif
> >
> > This ought to be
> >
> > #define STATIC_MNTS (2 + (IS_ENABLED(CONFIG_CONSFRONT) * 2))
> >
> > because it shows where the parts come from, and is much cleaner to add a
> > 3rd one to in due course.
>
> In principle fine, but I'm not sure it is worth the effort to add
> IS_ENABLED() support to Mini-OS.
>
> > That said, it would be simpler to just have a total mounts set at 16 or
> > so? Does a difference of two dynamic mounts depending on CONSFRONT
> > actually matter?
>
> Probably not. Samuel, any thoughts on that?
We can probably as well just have 16 mount entries indeed.
Samuel
next prev parent reply other threads:[~2023-02-10 12:45 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-10 10:46 [PATCH v2 0/7] Mini-OS: add minimal 9pfs support Juergen Gross
2023-02-10 10:46 ` [PATCH v2 1/7] Mini-OS: xenbus: add support for reading node from directory Juergen Gross
2023-02-10 18:43 ` Samuel Thibault
2023-02-10 10:46 ` [PATCH v2 2/7] Mini-OS: add concept of mount points Juergen Gross
2023-02-10 18:44 ` Samuel Thibault
2023-02-10 10:46 ` [PATCH v2 3/7] Mini-OS: add support for runtime mounts Juergen Gross
2023-02-10 11:43 ` Andrew Cooper
2023-02-10 12:14 ` Juergen Gross
2023-02-10 12:44 ` Samuel Thibault [this message]
2023-02-10 18:51 ` Andrew Cooper
2023-02-10 10:46 ` [PATCH v2 4/7] Mini-OS: add 9pfs frontend Juergen Gross
2023-02-10 18:46 ` Samuel Thibault
2023-02-10 10:46 ` [PATCH v2 5/7] Mini-OS: add 9pfs transport layer Juergen Gross
2023-02-10 18:48 ` Samuel Thibault
2023-02-10 10:46 ` [PATCH v2 6/7] Mini-OS: add open and close handling to the 9pfs frontend Juergen Gross
2023-02-10 18:53 ` Samuel Thibault
2023-02-11 6:23 ` Juergen Gross
2023-02-10 10:46 ` [PATCH v2 7/7] Mini-OS: add read and write support to 9pfsfront Juergen Gross
2023-02-10 18:59 ` Samuel Thibault
2023-02-13 6:47 ` Juergen Gross
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230210124444.bc7siuuj5dwgf3pb@begin \
--to=samuel.thibault@ens-lyon.org \
--cc=andrew.cooper3@citrix.com \
--cc=jgross@suse.com \
--cc=minios-devel@lists.xenproject.org \
--cc=wl@xen.org \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.