Re: [PATCH 09/12] xen/hypfs: add support for id-based dynamic directories

2020-11-17 Thread Jürgen Groß
On 17.11.20 15:50, Jan Beulich wrote: On 17.11.2020 15:38, Jürgen Groß wrote: On 17.11.20 14:33, Jan Beulich wrote: On 26.10.2020 10:13, Juergen Gross wrote: +static struct hypfs_entry *hypfs_dyndir_findentry(struct hypfs_entry_dir *dir, + const

Re: [PATCH 09/12] xen/hypfs: add support for id-based dynamic directories

2020-11-17 Thread Jan Beulich
On 17.11.2020 15:38, Jürgen Groß wrote: > On 17.11.20 14:33, Jan Beulich wrote: >> On 26.10.2020 10:13, Juergen Gross wrote: >>> +static struct hypfs_entry *hypfs_dyndir_findentry(struct hypfs_entry_dir >>> *dir, >>> + const char *name, >>> +

Re: [PATCH 09/12] xen/hypfs: add support for id-based dynamic directories

2020-11-17 Thread Jürgen Groß
On 17.11.20 14:33, Jan Beulich wrote: On 26.10.2020 10:13, Juergen Gross wrote: --- a/xen/common/hypfs.c +++ b/xen/common/hypfs.c @@ -257,6 +257,82 @@ unsigned int hypfs_getsize(const struct hypfs_entry *entry) return entry->size; } +int hypfs_read_dyndir_id_entry(struct hypfs_entry_d

Re: [PATCH 09/12] xen/hypfs: add support for id-based dynamic directories

2020-11-17 Thread Jan Beulich
On 26.10.2020 10:13, Juergen Gross wrote: > --- a/xen/common/hypfs.c > +++ b/xen/common/hypfs.c > @@ -257,6 +257,82 @@ unsigned int hypfs_getsize(const struct hypfs_entry > *entry) > return entry->size; > } > > +int hypfs_read_dyndir_id_entry(struct hypfs_entry_dir *template, > +

[PATCH 09/12] xen/hypfs: add support for id-based dynamic directories

2020-10-26 Thread Juergen Gross
Add some helpers to hypfs.c to support dynamic directories with a numerical id as name. The dynamic directory is based on a template specified by the user allowing to use specific access functions and having a predefined set of entries in the directory. Signed-off-by: Juergen Gross --- xen/comm