util/mmap-alloc: qemu_fd_getfs()
commitfa45f8dab9613993c042176ea2d25552bfebc955
authorPeter Xu <peterx@redhat.com>
Wed, 19 Apr 2023 16:17:36 +0000 (19 12:17 -0400)
committerJuan Quintela <quintela@redhat.com>
Mon, 24 Apr 2023 09:29:00 +0000 (24 11:29 +0200)
tree09908fc64511b6020efff4f8539998f65cfc75b2
parent403d18ae384239876764bbfa111d6cc5dcb673d1
util/mmap-alloc: qemu_fd_getfs()

This new helper fetches file system type for a fd.  Only Linux is
implemented so far.  Currently only tmpfs and hugetlbfs are defined,
but it can grow as needed.

Signed-off-by: Peter Xu <peterx@redhat.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
include/qemu/mmap-alloc.h
util/mmap-alloc.c