Changeset View
Changeset View
Standalone View
Standalone View
sys/geom/geom_disk.c
Show First 20 Lines • Show All 522 Lines • ▼ Show 20 Lines | else if (g_handleattr_uint16_t(bp, "GEOM::hba_subdevice", | ||||
break; | break; | ||||
else if (!strcmp(bp->bio_attribute, "GEOM::kerneldump")) | else if (!strcmp(bp->bio_attribute, "GEOM::kerneldump")) | ||||
g_disk_kerneldump(bp, dp); | g_disk_kerneldump(bp, dp); | ||||
else if (!strcmp(bp->bio_attribute, "GEOM::setstate")) | else if (!strcmp(bp->bio_attribute, "GEOM::setstate")) | ||||
g_disk_setstate(bp, sc); | g_disk_setstate(bp, sc); | ||||
else if (g_handleattr_uint16_t(bp, "GEOM::rotation_rate", | else if (g_handleattr_uint16_t(bp, "GEOM::rotation_rate", | ||||
dp->d_rotation_rate)) | dp->d_rotation_rate)) | ||||
break; | break; | ||||
else if (g_handleattr_str(bp, "GEOM::attachment", | |||||
dp->d_attachment)) | |||||
break; | |||||
else | else | ||||
error = ENOIOCTL; | error = ENOIOCTL; | ||||
break; | break; | ||||
case BIO_FLUSH: | case BIO_FLUSH: | ||||
g_trace(G_T_BIO, "g_disk_flushcache(%s)", | g_trace(G_T_BIO, "g_disk_flushcache(%s)", | ||||
bp->bio_to->name); | bp->bio_to->name); | ||||
if (!(dp->d_flags & DISKFLAG_CANFLUSHCACHE)) { | if (!(dp->d_flags & DISKFLAG_CANFLUSHCACHE)) { | ||||
error = EOPNOTSUPP; | error = EOPNOTSUPP; | ||||
break; | break; | ||||
▲ Show 20 Lines • Show All 534 Lines • Show Last 20 Lines |