Lines Matching defs:open_flags
412 int ret, open_flags;
420 bs->open_flags = flags;
446 open_flags = flags & ~(BDRV_O_SNAPSHOT | BDRV_O_NO_BACKING);
452 open_flags |= BDRV_O_RDWR;
457 ret = drv->bdrv_file_open(bs, filename, open_flags);
459 ret = bdrv_file_open(&bs->file, filename, open_flags);
461 ret = drv->bdrv_open(bs, open_flags);
469 bs->keep_read_only = bs->read_only = !(open_flags & BDRV_O_RDWR);
749 int n, ro, open_flags;
768 open_flags = bs->backing_hd->open_flags;
775 rw_ret = bdrv_open(bs_rw, filename, open_flags | BDRV_O_RDWR, drv);
780 ret = bdrv_open(bs_ro, filename, open_flags & ~BDRV_O_RDWR, drv);
831 ret = bdrv_open(bs_ro, filename, open_flags & ~BDRV_O_RDWR, drv);
1084 if ((bs->open_flags & BDRV_O_CACHE_MASK) != 0) {
1456 if (bs->open_flags & BDRV_O_NO_FLUSH) {
1815 return !!(bs->open_flags & BDRV_O_SNAPSHOT);
1863 open_ret = drv->bdrv_open(bs, bs->open_flags);
2262 if (bs->open_flags & BDRV_O_NO_FLUSH) {