9pfs: local: Add support for custom fmode/dmode in 9ps mapped security modes
Status from this message: Pushed to https://github.com/gkurz/qemu/commits/9p-next
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v5 Latest1 patch 2 repliesApplied
- v41 patch 2 repliesSuperseded
Patches in v5 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/1 | 9pfs: local: Add support for custom fmode/dmode in 9ps mapped security modesfsdev/ fsdev/ hw/ +2 more | +56 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v5 yet.
Cover letter [Qemu-devel] [PATCH v5 0/1] 9pfs: local: Add support for custom fmode/dmode in 9ps mapped security modes
Hi Greg,
thank you for your hints on improving this patch. I've implemented them all in this version.
In the last version of the patch I moved the path check down because I moved the g_strdup and tried to keep all operations performed on path as close together as possible to increase readability. But I clearly didn't think of madatory vs optional aguments.
I introduced extra variables for fmode and dmode for clear separation of fetching and processing of arguments. But I guess that trade off is just personal preference.
I do agree that unifying the mapped mode checks is a good idea. Considering that it is used in quite a few places might it be a good idea to write a macro for that check?
Also I have added a much more descriptive commit message.
Again, thank you for the great help (and patience :)).
Regards,
Tobias Schramm
Tobias Schramm (1):
9pfs: local: Add support for custom fmode/dmode in 9ps mapped security
modes
fsdev/file-op-9p.h | 4 ++++ fsdev/qemu-fsdev-opts.c | 12 ++++++++++++ hw/9pfs/9p-local.c | 25 +++++++++++++++++++++---- hw/9pfs/9p.c | 3 +++ qemu-options.hx | 20 ++++++++++++++++---- 5 files changed, 56 insertions(+), 8 deletions(-)
Signature · 1 line
2.13.1