Re: [PATCH 1/3] hostmem: Detect and cache fs type for file hostmem

2023-04-19 Thread Peter Xu
On Wed, Apr 19, 2023 at 09:28:21AM +0200, David Hildenbrand wrote: > On 19.04.23 00:57, Peter Xu wrote: > > Detect the file system for a memory-backend-file object and cache it within > > the object if possible when CONFIG_LINUX (using statfs). > > > > Only support the two important types of

Re: [PATCH 1/3] hostmem: Detect and cache fs type for file hostmem

2023-04-19 Thread David Hildenbrand
On 19.04.23 00:57, Peter Xu wrote: Detect the file system for a memory-backend-file object and cache it within the object if possible when CONFIG_LINUX (using statfs). Only support the two important types of memory (tmpfs, hugetlbfs) and keep the rest as "unknown" for now. Signed-off-by: Peter

Re: [PATCH 1/3] hostmem: Detect and cache fs type for file hostmem

2023-04-19 Thread Daniel P . Berrangé
On Tue, Apr 18, 2023 at 06:57:47PM -0400, Peter Xu wrote: > Detect the file system for a memory-backend-file object and cache it within > the object if possible when CONFIG_LINUX (using statfs). > > Only support the two important types of memory (tmpfs, hugetlbfs) and keep > the rest as "unknown"

[PATCH 1/3] hostmem: Detect and cache fs type for file hostmem

2023-04-18 Thread Peter Xu
Detect the file system for a memory-backend-file object and cache it within the object if possible when CONFIG_LINUX (using statfs). Only support the two important types of memory (tmpfs, hugetlbfs) and keep the rest as "unknown" for now. Signed-off-by: Peter Xu --- backends/hostmem-file.c |