Re: [PATCH v2 1/4] util/mmap-alloc: qemu_fd_getfs()

2023-04-19 Thread Juan Quintela
Peter Xu wrote: > This new helper fetches file system type for a fd. Only Linux is > implemented so far. Currently only tmpfs and hugetlbfs is defined, but it s/is/are/ > can grow per need. > > Signed-off-by: Peter Xu Reviewed-by: Juan Quintela ... > +#include ... > +case TMPFS_MAG

Re: [PATCH v2 1/4] util/mmap-alloc: qemu_fd_getfs()

2023-04-19 Thread David Hildenbrand
On 19.04.23 18:17, Peter Xu wrote: This new helper fetches file system type for a fd. Only Linux is implemented so far. Currently only tmpfs and hugetlbfs is defined, but it can grow per need. Signed-off-by: Peter Xu --- include/qemu/mmap-alloc.h | 7 +++ util/mmap-alloc.c | 2

[PATCH v2 1/4] util/mmap-alloc: qemu_fd_getfs()

2023-04-19 Thread Peter Xu
This new helper fetches file system type for a fd. Only Linux is implemented so far. Currently only tmpfs and hugetlbfs is defined, but it can grow per need. Signed-off-by: Peter Xu --- include/qemu/mmap-alloc.h | 7 +++ util/mmap-alloc.c | 28 2 files