Sophie

Sophie

distrib > CentOS > 5 > x86_64 > by-pkgid > 2b12d0199a2bbc4a02ef3834d926ac4a > files > 114

systemtap-client-1.8-6.el5.x86_64.rpm

title: Monitor Read/Write of the Boot Sector Area of Block Devices
name: mbrwatch.stp
version: 1.0
author: anonymous
keywords: io monitoring disk
subsystem: io
status: proposed
exit: user-controlled
output: trace
scope: system-wide
description:  The mbrwatch.stp script reports any attempted reads/writes of the first few sectors of a raw block device.
test_check: stap -p4 mbrwatch.stp
test_installcheck: stap mbrwatch.stp -c "dd of=/dev/null count=1 if=/dev/`grep -v major /proc/partitions | grep . | awk '{print $4}' | head -1`"