Displaying 2 results from an estimated 2 matches for "getminor".
Did you mean:
devminor
2007 Aug 23
1
EOF broken on zvol raw devices?
...ing like this:
diff -r 26be3efbd346 usr/src/uts/common/fs/zfs/zvol.c
--- a/usr/src/uts/common/fs/zfs/zvol.c Thu Aug 23 00:53:10 2007 -0700
+++ b/usr/src/uts/common/fs/zfs/zvol.c Thu Aug 23 16:30:41 2007 +0200
@@ -904,6 +904,7 @@ zvol_read(dev_t dev, uio_t *uio, cred_t
{
minor_t minor = getminor(dev);
zvol_state_t *zv;
+ uint64_t volsize;
rl_t *rl;
int error = 0;
@@ -914,10 +915,16 @@ zvol_read(dev_t dev, uio_t *uio, cred_t
if (zv == NULL)
return (ENXIO);
+ volsize = zv->zv_volsize;
+
rl = zfs_range_lock(&zv-&g...
2009 Mar 20
1
suspicious dtrace results
...and ssdwrite. It shows very small number 4 or 5.
#pragma D option flowindent
syscall::pread:entry
{
self->trace = 1;
self->size = arg2;
}
syscall::pwrite:entry
{
self->trace = 1;
self->size = arg2;
}
fbt:ssd:ssdread:entry
/self->trace/
{
self->start = timestamp;
self->minor = getminor(arg0);
}
fbt:ssd:ssdread:return
/self->start/
{
@avrg[pid,probefunc,self->minor,self->size] = avg((timestamp - self->start) / 1000);
@numbers[pid,probefunc,self->minor,self->size] = count();
self->start = 0;
}
fbt:ssd:ssdwrite:entry
/self->trace/
{
self->start = timestamp...