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
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,
>>> +
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
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,
> +
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