« Previous | Next » 

Revision db431f6a

IDdb431f6adc881a0758512cd765b3108209013512

Added by Gabriel de Perthuis about 11 years ago

hw/9pfs: Be robust against paths without FS_IOC_GETVERSION

9P optionally uses the FS_IOC_GETVERSION ioctl to get information about
a file's version (sometimes called generation number).

The code checks for supported filesystems at mount time, but some paths
may come from other mounted filesystems.

Change it to treat unsupported paths the same as unsupported
filesystems, returning 0 in both cases.

Note: ENOTTY is the error code for an unsupported ioctl.

This fix allows booting a linux kernel with the same / filesystem as the
host; otherwise the boot fails when mounting devtmpfs.

Signed-off-by: Gabriel de Perthuis <>
Reviewed-by: Aneesh Kumar K.V <>
Signed-off-by: Aneesh Kumar K.V <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences