crosvm/common
Daniel Verkamp a323861bf5 p9: set filetype from directory to file in lcreate
The 9p lcreate operation takes a directory fid as input and creates a
file in that directory; when the operation completes, the same fid
becomes a reference to the newly-created file. We updated the internal
self.fids structure's file and path fields to point to the new file, but
we neglected to update the filetype field, which would remain as the
original FileType::Directory.

This caused an issue with commit 53cd18e062 ("p9: use *at() functions
for set_attr"), since that change causes set_attr requests to validate
the filetype is not a directory when attempting to set its length.

BUG=b:253838039
TEST=tast run <...>.DefaultSharedFolder

Change-Id: Ie46a660dd4616d669c924014e704e9b5703eb7e9
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3983116
Reviewed-by: Joel Hockey <joelhockey@chromium.org>
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
2022-10-26 23:23:53 +00:00
..
assertions Update all copyright headers to match new style 2022-09-13 18:41:29 +00:00
audio_streams health-check: enforce blank line after copyright 2022-09-13 22:24:35 +00:00
balloon_control Update all copyright headers to match new style 2022-09-13 18:41:29 +00:00
cros-fuzz crosvm-fuzz: Migrate crosvm-fuzz to cargo fuzz 2022-10-03 16:12:15 +00:00
cros_asyncv2 base: cross platform Event API 2022-10-19 20:17:42 +00:00
data_model Update all copyright headers to match new style 2022-09-13 18:41:29 +00:00
p9 p9: set filetype from directory to file in lcreate 2022-10-26 23:23:53 +00:00
sync Update all copyright headers to match new style 2022-09-13 18:41:29 +00:00
chromeos_warning.md Add version pin warning to common/ 2022-04-15 19:51:35 +00:00
README.md docs: Use mdformat to format markdown files 2022-01-27 21:29:11 +00:00

Crosvm General Purpose Libraries

The crates in this folder are general purpose libraries used by other projects in ChromeOS as well.

To make them accessible independendly of crosvm, each of these crates is excluded from the crosvm workspace.

List of libraries

  • cros-fuzz: Support crate for fuzzing rust code in ChromeOS
  • p9: Server implementation of the 9p file system protocol