Re: [PATCH v2 3/5] 9pfs: fix wrong encoding of rdev field in Rgetattr on macOS

2022-04-21 Thread Greg Kurz
On Thu, 21 Apr 2022 17:07:46 +0200 Christian Schoenebeck wrote: > The 'rdev' field in 9p reponse 'Rgetattr' is of type dev_t, > which is actually a system dependant type and therefore both the > size and encoding of dev_t differ between macOS and Linux. > > So far we have sent 'rdev' to guest

[PATCH v2 3/5] 9pfs: fix wrong encoding of rdev field in Rgetattr on macOS

2022-04-21 Thread Christian Schoenebeck
The 'rdev' field in 9p reponse 'Rgetattr' is of type dev_t, which is actually a system dependant type and therefore both the size and encoding of dev_t differ between macOS and Linux. So far we have sent 'rdev' to guest in host's dev_t format as-is, which caused devices to appear with wrong