Lines Matching defs:read_only
105 bool read_only,
123 i->read_only = read_only;
157 bool read_only;
169 read_only =
206 info.read_only || read_only,
240 read_only || (file_attr & FS_IMMUTABLE_FL),
266 !(st.st_mode & 0222) || read_only,
574 int image_clone(Image *i, const char *new_name, bool read_only) {
609 r = btrfs_subvol_snapshot(i->path, new_path, (read_only ? BTRFS_SNAPSHOT_READ_ONLY : 0) | BTRFS_SNAPSHOT_FALLBACK_COPY | BTRFS_SNAPSHOT_RECURSIVE | BTRFS_SNAPSHOT_QUOTA);
620 r = copy_file_atomic(i->path, new_path, read_only ? 0444 : 0644, false, FS_NOCOW_FL);