This is the mail archive of the mailing list for the systemtap project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug testsuite/18563] New: on ppc64, the mbrwatch.stp example script fails when tested

            Bug ID: 18563
           Summary: on ppc64, the mbrwatch.stp example script fails when
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: testsuite
          Assignee: systemtap at sourceware dot org
          Reporter: dsmith at redhat dot com
  Target Milestone: ---

On ppc64, the mbrwatch.stp example script fails to run when tested by the
check.exp test case. Here's the relevant output from the log file:

attempting command stap mbrwatch.stp -c "dd of=/dev/null count=1 if=/dev/`grep
-v major /proc/partitions | grep . | awk '{print $4}' | head -1`"
OUT dd: failed to open '/dev/sr0': No medium found
WARNING: Child process exited with status 1
WARNING: /usr/local/bin/staprun exited with status: 1
Pass 5: run failed.  [man error::pass5]
child process exited abnormally
RC 1
FAIL: systemtap.examples/io/mbrwatch run

The problem here is that when looking for a disk to read, the test case is
grabbing /dev/sr0, which isn't really a disk drive:

# lsblk
NAME                                   MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda                                      8:0    0   20G  0 disk 
ââsda1                                   8:1    0    4M  0 part 
ââsda2                                   8:2    0  500M  0 part /boot
ââsda3                                   8:3    0 19.5G  0 part 
  âârhel_ibm--ps822--1--vios--lp5-swap 253:0    0    2G  0 lvm  [SWAP]
  âârhel_ibm--ps822--1--vios--lp5-root 253:1    0 17.5G  0 lvm  /
sr0                                     11:0    1 1024M  0 rom  

You are receiving this mail because:
You are the assignee for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]