Add support for read-only volumes. Fix #6884