Re: [Qemu-devel] [PATCH 4/4] 9pfs: stat_to_qid: implement slow path

2018-02-16 Thread Antonios Motakis
On 02/09/2018 10:47 PM, Emilio G. Cota wrote: On Fri, Feb 09, 2018 at 16:22:33 +0100, Greg Kurz wrote: On Thu, 8 Feb 2018 19:00:19 +0100 wrote: (snip) /* stat_to_qid needs to map inode number (64 bits) and device id (32 bits) * to a unique QID path (64 bits). To avoid having to map and

Re: [Qemu-devel] [PATCH 4/4] 9pfs: stat_to_qid: implement slow path

2018-02-09 Thread Emilio G. Cota
On Fri, Feb 09, 2018 at 16:22:33 +0100, Greg Kurz wrote: > On Thu, 8 Feb 2018 19:00:19 +0100 > wrote: (snip) > > /* stat_to_qid needs to map inode number (64 bits) and device id (32 bits) > > * to a unique QID path (64 bits). To avoid having to map and keep track > > * of up to 2^64 objects,

Re: [Qemu-devel] [PATCH 4/4] 9pfs: stat_to_qid: implement slow path

2018-02-09 Thread Greg Kurz
On Thu, 8 Feb 2018 19:00:19 +0100 wrote: > From: Antonios Motakis > > stat_to_qid attempts via qid_path_prefixmap to map unique files > (which are identified by 64bt inode nr and 32 bit device id) > to a 64 QID path value. However this implementation makes some > assumptions about inode number

[Qemu-devel] [PATCH 4/4] 9pfs: stat_to_qid: implement slow path

2018-02-08 Thread antonios.motakis
From: Antonios Motakis stat_to_qid attempts via qid_path_prefixmap to map unique files (which are identified by 64bt inode nr and 32 bit device id) to a 64 QID path value. However this implementation makes some assumptions about inode number generation on the host. If qid_path_prefixmap fails, w