Discussion:
fileinfo structures returns no information
Mike DeMarco
2010-11-19 14:07:01 UTC
Permalink
I can not get any information out of the fileinfo structure. A simple program that should give me the io fileinformation always returns <none>

#pragma D option quiet
io:::start
{
printf ("%5d %4d %4d %30s %30s\n", args[0]->b_bcount,
args[1]->dev_major, args[1]->dev_minor,
args[1]->dev_pathname, args[2]->fi_pathname);
}


4096 83 18 /devices/***@0,0/pci1558,***@1f,2/***@0,0:s <none>
4096 83 18 /devices/***@0,0/pci1558,***@1f,2/***@0,0:s <none>
5120 83 18 /devices/***@0,0/pci1558,***@1f,2/***@0,0:s <none>
4096 83 18 /devices/***@0,0/pci1558,***@1f,2/***@0,0:s <none>
21504 83 18 /devices/***@0,0/pci1558,***@1f,2/***@0,0:s <none>
2560 83 18 /devices/***@0,0/pci1558,***@1f,2/***@0,0:s <none>
29184 83 18 /devices/***@0,0/pci1558,***@1f,2/***@0,0:s <none>
29184 83 18 /devices/***@0,0/pci1558,***@1f,2/***@0,0:s <none>
12288 83 18 /devices/***@0,0/pci1558,***@1f,2/***@0,0:s <none>
4096 83 18 /devices/***@0,0/pci1558,***@1f,2/***@0,0:s <none>
--
This message posted from opensolaris.org
Angelo Rajadurai
2010-11-19 14:50:36 UTC
Permalink
Hey Mike:

Are you on trying this on a ZFS file system? See discussion here for a possible solution.

http://www.opensolaris.org/jive/thread.jspa?messageID=497295

-Angelo
Post by Mike DeMarco
I can not get any information out of the fileinfo structure. A simple program that should give me the io fileinformation always returns <none>
#pragma D option quiet
io:::start
{
printf ("%5d %4d %4d %30s %30s\n", args[0]->b_bcount,
args[1]->dev_major, args[1]->dev_minor,
args[1]->dev_pathname, args[2]->fi_pathname);
}
--
This message posted from opensolaris.org
_______________________________________________
dtrace-discuss mailing list
Mike DeMarco
2010-11-19 15:39:30 UTC
Permalink
Thanks Angelo

Not great but it is a work around.
--
This message posted from opensolaris.org
Loading...