MCPcopy Create free account
hub / github.com/F-Stack/f-stack / vdev_bdev_mode

Function vdev_bdev_mode

freebsd/contrib/openzfs/module/os/linux/zfs/vdev_disk.c:74–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72} dio_request_t;
73
74static fmode_t
75vdev_bdev_mode(spa_mode_t spa_mode)
76{
77 fmode_t mode = 0;
78
79 if (spa_mode & SPA_MODE_READ)
80 mode |= FMODE_READ;
81
82 if (spa_mode & SPA_MODE_WRITE)
83 mode |= FMODE_WRITE;
84
85 return (mode);
86}
87
88/*
89 * Returns the usable capacity (in bytes) for the partition or disk.

Callers 2

vdev_disk_openFunction · 0.85
vdev_disk_closeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected