Open
Description
It would be nice to support sharing in single files instead of being bound by it being a directory.
Virtiofs doesn't support sharing in single files, so we'd need to get a bit smart. One option is to share in the parent directory of the file, and then bind mount the single file into the containers mount ns. The mount setup code would need to start doing a stat on every mount to ensure it's a file and not a directory and take appropriate action, but that's not too worrying.