Home
last modified time | relevance | path

Searched refs:zv_flags (Results 1 – 4 of 4) sorted by relevance

/freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/
H A Dzvol_os.c254 if (zv->zv_zso->zso_dying || zv->zv_flags & ZVOL_REMOVING) { in zvol_geom_open()
319 if ((flag & FWRITE) && ((zv->zv_flags & ZVOL_RDONLY) || in zvol_geom_open()
324 if (zv->zv_flags & ZVOL_EXCL) { in zvol_geom_open()
333 zv->zv_flags |= ZVOL_EXCL; in zvol_geom_open()
366 if (zv->zv_flags & ZVOL_EXCL) { in zvol_geom_close()
368 zv->zv_flags &= ~ZVOL_EXCL; in zvol_geom_close()
687 if (zv->zv_flags & ZVOL_REMOVING) { in zvol_geom_bio_strategy()
699 if (zv->zv_flags & ZVOL_RDONLY) { in zvol_geom_bio_strategy()
1010 if ((flags & FWRITE) && (zv->zv_flags & ZVOL_RDONLY)) { in zvol_cdev_open()
1014 if (zv->zv_flags & ZVOL_EXCL) { in zvol_cdev_open()
[all …]
/freebsd/sys/contrib/openzfs/module/zfs/
H A Dzvol.c393 zv->zv_flags |= ZVOL_RDONLY; in zvol_set_ro()
396 zv->zv_flags &= ~ZVOL_RDONLY; in zvol_set_ro()
770 zv->zv_flags &= ~ZVOL_WRITTEN_TO; in zvol_setup_zv()
790 zv->zv_flags |= ZVOL_RDONLY; in zvol_setup_zv()
793 zv->zv_flags &= ~ZVOL_RDONLY; in zvol_setup_zv()
808 if (zv->zv_flags & ZVOL_WRITTEN_TO) { in zvol_shutdown_zv()
822 if (zv->zv_flags & ZVOL_WRITTEN_TO) in zvol_shutdown_zv()
898 if (zv->zv_flags & ZVOL_REMOVING) in zvol_resume()
936 if (zv->zv_flags & ZVOL_REMOVING) in zvol_last_close()
1249 zv->zv_flags |= ZVOL_REMOVING; in zvol_remove_minor_task()
[all …]
/freebsd/sys/contrib/openzfs/include/sys/
H A Dzvol_impl.h43 uint32_t zv_flags; /* ZVOL_* flags */ member
/freebsd/sys/contrib/openzfs/module/os/linux/zfs/
H A Dzvol_os.c518 if (unlikely(zv->zv_flags & ZVOL_REMOVING)) { in zvol_request_impl()
559 if (unlikely(zv->zv_flags & ZVOL_RDONLY)) { in zvol_request_impl()
583 zv->zv_flags |= ZVOL_WRITTEN_TO; in zvol_request_impl()
730 if (unlikely(zv->zv_flags & ZVOL_REMOVING)) { in zvol_open()
819 (zv->zv_flags & ZVOL_RDONLY)) { in zvol_open()
917 if (!(zv->zv_flags & ZVOL_RDONLY)) in zvol_ioctl()
1657 zv->zv_flags |= ZVOL_RDONLY; in zvol_os_create_minor()