9pfs fixes for 2.11 20171106
The following changes since commit 299d1ea9bb56bd9f45f905125489bdd7d543a1aa:
Merge remote-tracking branch 'remotes/yongbok/tags/mips-20171106' into staging (2017-11-06 16:13:10 +0000)
are available in the git repository at:
https://github.com/gkurz/qemu.git tags/for-upstream
for you to fetch changes up to 267fcadf325e54c6e1cb27321413dbdbe2200510:
9pfs: fix v9fs_mark_fids_unreclaim() return value (2017-11-06 18:05:35 +0100)
----------------------------------------------------------------
This fixes a bad errno returned to the guest and a trivial coding style nit.
----------------------------------------------------------------
Greg Kurz (2):
9pfs: drop one user of struct V9fsFidState 9pfs: fix v9fs_mark_fids_unreclaim() return value
hw/9pfs/9p.c | 2 +- hw/9pfs/9p.h | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-)
Signature · 1 line
2.13.6
[Qemu-devel] [PULL 1/2] 9pfs: drop one user of struct V9fsFidState
To comply with QEMU coding style.
--- hw/9pfs/9p.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
hw/9pfs/9p.h +4 -4
@@ -117,7 +117,7 @@ static inline char *rpath(FsContext *ctx, const char *path)#define P9_IOHDRSZ 24typedef struct V9fsPDU V9fsPDU ; -struct V9fsState ; +typedef struct V9fsState V9fsState ; typedef struct { uint32_t size_le;
@@ -137,7 +137,7 @@ struct V9fsPDUuint8_t id;uint8_t cancelled;CoQueue complete; -struct V9fsState *s; +V9fsState *s;QLIST_ENTRY (V9fsPDU) next;uint32_t idx; };
@@ -230,7 +230,7 @@ struct V9fsFidStateV9fsFidState *rclm_lst; }; -typedef struct V9fsState +struct V9fsState { QLIST_HEAD(, V9fsPDU) free_list; QLIST_HEAD(, V9fsPDU) active_list;
@@ -251,7 +251,7 @@ typedef struct V9fsStateError *migration_blocker;V9fsConf fsconf;V9fsQID root_qid; -} V9fsState; +};/* 9p2000.L open flags */ #define P9_DOTL_RDONLY 00000000
Signature · 1 line
2.13.6
[Qemu-devel] [PULL 2/2] 9pfs: fix v9fs_mark_fids_unreclaim() return value
In reply to Greg KurzThe return value of v9fs_mark_fids_unreclaim() is then propagated to pdu_complete(). It should be a negative errno, not -1.
--- hw/9pfs/9p.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
hw/9pfs/9p.c +1 -1
@@ -512,7 +512,7 @@ static int coroutine_fn v9fs_mark_fids_unreclaim(V9fsPDU *pdu, V9fsPath *path)/* reopen the file/dir if already closed */ err =v9fs_reopen_fid (pdu, fidp);if (err <0 ) { -return -1 ; +return err; }/* * Go back to head of fid list because
Signature · 1 line
2.13.6
Peter Maydell
AppliedQuoted 20 lines · Greg Kurz
The following changes since commit
299d1ea9bb56bd9f45f905125489bdd7d543a1aa:Merge remote-tracking branch 'remotes/yongbok/tags/mips-20171106' into staging (2017-11-06 16:13:10 +0000)
are available in the git repository at:
https://github.com/gkurz/qemu.git tags/for-upstream
for you to fetch changes up to
267fcadf325e54c6e1cb27321413dbdbe2200510:9pfs: fix
v9fs_mark_fids_unreclaim()return value (2017-11-06 18:05:35 +0100)----------------------------------------------------------------
This fixes a bad errno returned to the guest and a trivial coding style nit.----------------------------------------------------------------
Greg Kurz (2):
9pfs: drop one user of struct V9fsFidState 9pfs: fixv9fs_mark_fids_unreclaim()return value
Quoted 4 lines
hw/9pfs/9p.c | 2 +- hw/9pfs/9p.h | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-)--
Applied, thanks.
-- PMM