Daniel P. Berrange eed968607d hw/9pfs: Remove O_NOATIME flag from 9pfs open() calls in readonly mode
When 2c74c2cb4bedddbfa67628fbd5f9273b4e0e9903 added support for
the 'readonly' flag against 9p filesystems, it also made QEMU
add the O_NOATIME flag as a side-effect.

The O_NOATIME flag, however, may only be set by the file owner,
or a user with CAP_FOWNER capability.  QEMU cannot assume that
this is the case for filesytems exported to QEMU.

eg, run QEMU as non-root, and attempt to pass the host OS
filesystem through to the guest OS with readonly enable.
The result is that the guest OS cannot open any files at
all.

If O_NOATIME is really required, it should be optionally
enabled via a separate QEMU command line flag.

 * hw/9pfs/virtio-9p.c: Remove O_NOATIME

Acked-by: M. Mohan Kumar <mohan@in.ibm.com>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
2012-01-30 10:54:17 +05:30
..
2012-01-04 13:41:42 +00:00
2012-01-13 10:55:56 -06:00
2012-01-13 10:55:56 -06:00
2011-04-10 14:00:14 +02:00
2011-12-20 15:44:31 -06:00
2011-12-20 15:44:30 -06:00
2012-01-13 10:55:56 -06:00
2011-08-22 10:20:10 -05:00
2011-08-22 10:17:44 -05:00
2011-07-24 14:48:57 +00:00
2012-01-13 10:55:56 -06:00
2011-12-06 09:56:41 +00:00
2011-07-23 11:26:12 -05:00
2012-01-13 10:55:56 -06:00
2011-12-15 09:20:47 -06:00
2011-10-06 09:48:07 +02:00
2012-01-04 02:48:14 +01:00
2011-10-17 15:59:18 +02:00
2012-01-13 10:55:56 -06:00
2011-12-06 09:56:41 +00:00
2012-01-13 10:55:56 -06:00
2011-12-14 11:09:38 +00:00
2011-08-08 10:22:29 -05:00
2011-12-06 09:56:41 +00:00
2011-12-06 09:59:05 +00:00
2011-01-24 20:54:34 +00:00
2011-12-20 15:44:31 -06:00
2011-12-06 09:56:41 +00:00
2011-12-14 11:09:12 +00:00
2011-09-10 14:49:51 +00:00
2011-11-02 07:51:58 -05:00
2011-10-16 11:10:48 +00:00
2011-09-23 11:51:05 -05:00
2011-09-23 11:51:05 -05:00
2012-01-13 10:20:50 -06:00
2011-03-07 13:42:36 +01:00
2011-03-07 13:42:36 +01:00
2011-12-14 11:08:23 +00:00
2011-12-14 11:08:23 +00:00
2011-10-21 18:14:29 +02:00
2011-10-21 18:14:29 +02:00
2011-02-11 23:31:17 +01:00
2011-11-28 15:38:42 +02:00
2011-11-28 15:38:42 +02:00
2011-11-28 15:38:42 +02:00
2011-11-28 15:38:42 +02:00
2011-11-24 18:31:59 +02:00
2011-07-12 20:00:28 +00:00
2012-01-13 10:55:56 -06:00
2011-08-08 10:22:30 -05:00
2012-01-13 10:55:56 -06:00
2011-08-08 10:22:29 -05:00
2011-11-28 15:38:39 +02:00
2011-11-28 15:38:41 +02:00
2011-11-28 15:38:41 +02:00
2011-11-24 18:31:54 +02:00
2011-12-20 15:44:31 -06:00
2011-10-23 14:05:46 +00:00
2011-11-24 18:32:03 +02:00
2011-09-21 14:32:20 +02:00
2012-01-04 02:48:14 +01:00
2011-08-22 10:22:03 -05:00
2011-08-22 10:22:03 -05:00
2010-11-22 10:00:06 +02:00
2011-08-24 15:52:54 +03:00
2011-09-25 14:58:37 +03:00
2011-11-01 16:52:09 -05:00
2011-11-01 16:52:09 -05:00
2011-12-20 15:44:31 -06:00
2011-12-20 15:44:30 -06:00
2011-12-20 15:44:30 -06:00
2012-01-13 10:55:56 -06:00
2011-12-14 11:08:23 +00:00
2011-12-14 11:08:23 +00:00
2011-12-14 11:08:23 +00:00
2012-01-04 10:31:56 +00:00
2011-11-24 18:32:03 +02:00
2011-08-22 10:47:42 -05:00
2011-10-06 09:48:09 +02:00
2011-12-06 09:56:41 +00:00
2011-10-06 09:48:09 +02:00
2011-11-24 18:32:03 +02:00
2011-11-01 16:52:05 -05:00
2012-01-13 10:20:50 -06:00
2012-01-17 01:40:18 +01:00
2011-11-24 18:31:59 +02:00
2011-09-07 09:20:09 +02:00
2011-11-01 12:11:53 +01:00
2011-11-24 18:31:59 +02:00
2012-01-04 02:48:14 +01:00
2012-01-04 02:48:14 +01:00
2011-12-20 15:44:31 -06:00
2011-11-22 10:33:30 +01:00
2011-11-18 13:57:16 +01:00
2011-06-07 13:52:30 -05:00
2011-12-06 09:56:41 +00:00
2011-11-24 18:32:03 +02:00
2011-11-24 18:32:03 +02:00
2011-11-24 18:32:03 +02:00
2012-01-07 21:29:26 +01:00
2012-01-13 10:55:56 -06:00
2011-07-23 11:26:12 -05:00
2012-01-03 15:49:11 +01:00
2011-10-28 19:25:51 +02:00
2012-01-13 10:55:56 -06:00
2011-12-14 11:09:12 +00:00
2011-07-23 11:26:12 -05:00
2012-01-13 10:55:56 -06:00
2012-01-13 10:55:56 -06:00
2011-10-17 15:59:18 +02:00
2012-01-13 10:55:56 -06:00
2011-09-07 09:58:26 +02:00
2011-09-07 09:58:26 +02:00
2011-11-23 16:24:05 +01:00
2011-08-04 15:51:22 +02:00
2011-09-07 09:58:27 +02:00
2011-08-04 15:51:22 +02:00
2011-10-13 12:58:51 +02:00
2012-01-12 10:03:28 -06:00
2012-01-13 10:55:56 -06:00
2011-03-22 07:44:15 +01:00
2011-12-06 09:56:41 +00:00
2011-04-08 11:32:21 +02:00
2012-01-13 10:55:56 -06:00