public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Markus Plail <linux-kernel@gitteundmarkus.de>
To: Markus Plail <linux-kernel@gitteundmarkus.de>
Subject: Re: [PATCH] SG_IO readcd and various bugs
Date: Fri, 30 May 2003 15:52:40 +0200	[thread overview]
Message-ID: <874r3cpmmv.fsf@gitteundmarkus.de> (raw)
In-Reply-To: <878ysopmus.fsf@gitteundmarkus.de> (Markus Plail's message of "Fri, 30 May 2003 15:47:55 +0200")

On Fri, 30 May 2003, Markus Plail wrote:

> The patch makes readcd work just fine here :-) Many thanks!

Just realized that C2 scans don't yet work.

regards
Markus

[15:49:37]-[Fri May 30]-[/home/plail]
[root@plailis_lfs]strace /opt/schily/bin/readcd dev=/dev/hdb -c2scan
execve("/opt/schily/bin/readcd", ["/opt/schily/bin/readcd", "dev=/dev/hdb", "-c2scan"], [/* 45 vars */]) = 0
brk(0)                                  = 0x806a000
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=66034, ...}) = 0
old_mmap(NULL, 66034, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40017000
close(3)                                = 0
open("/lib/libc.so.6", O_RDONLY)        = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\10\332"..., 1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=5021367, ...}) = 0
old_mmap(NULL, 1215588, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40028000
mprotect(0x40146000, 44132, PROT_NONE)  = 0
old_mmap(0x40146000, 28672, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x11d000) = 0x40146000
old_mmap(0x4014d000, 15460, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4014d000
close(3)                                = 0
munmap(0x40017000, 66034)               = 0
brk(0)                                  = 0x806a000
brk(0x806a0a8)                          = 0x806a0a8
brk(0x806b000)                          = 0x806b000
brk(0x806d000)                          = 0x806d000
open("/dev/hdb", O_RDWR|O_NONBLOCK)     = 3
fcntl64(3, F_GETFL)                     = 0x8802 (flags O_RDWR|O_NONBLOCK|O_LARGEFILE)
fcntl64(3, F_SETFL, O_RDWR|O_LARGEFILE) = 0
ioctl(3, 0x5382, 0xbffff164)            = 0
ioctl(3, 0x5386, 0xbffff160)            = 0
ioctl(3, 0x2282, 0xbffff168)            = 0
ioctl(3, 0x5382, 0xbffff104)            = 0
ioctl(3, 0x5386, 0xbffff100)            = 0
ioctl(3, 0x2201, 0xbffff018)            = 0
fstat64(3, {st_mode=S_IFBLK|0660, st_rdev=makedev(3, 64), ...}) = 0
ioctl(3, 0x2272, 0xbffff338)            = 0
ioctl(3, 0x2272, 0xbffff338)            = 0
ioctl(3, 0x2275, 0xbffff334)            = -1 EINVAL (Invalid argument)
ioctl(3, 0x2272, 0xbffff334)            = 0
ioctl(3, 0x2272, 0xbffff318)            = 0
ioctl(3, 0x2272, 0xbffff314)            = 0
old_mmap(NULL, 139264, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40151000
geteuid32()                             = 0
getuid32()                              = 0
getuid32()                              = 0
setreuid32(0xffffffff, 0)               = 0
gettimeofday({1054302587, 28334}, NULL) = 0
ioctl(3, 0x2285, 0xbffff0fc)            = 0
gettimeofday({1054302587, 29005}, NULL) = 0
gettimeofday({1054302587, 29274}, NULL) = 0
ioctl(3, 0x2285, 0xbffff13c)            = 0
...
...[snip]...
...
ioctl(3, 0x2285, 0xbfffee8c)            = 0
gettimeofday({1054302587, 141430}, NULL) = 0
write(2, "Read  speed:  8310 kB/s (CD  47x"..., 44Read  speed:  8310 kB/s (CD  47x, DVD  6x).
) = 44
write(2, "Write speed:  2770 kB/s (CD  15x"..., 44Write speed:  2770 kB/s (CD  15x, DVD  2x).
) = 44
rt_sigaction(SIGINT, {0x8049d48, [INT], SA_RESTART|0x4000000}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGTERM, {0x8049d48, [TERM], SA_RESTART|0x4000000}, {SIG_DFL}, 8) = 0
gettimeofday({1054302587, 143382}, NULL) = 0
ioctl(3, 0x2285, 0xbffff28c)            = 0
gettimeofday({1054302587, 144030}, NULL) = 0
gettimeofday({1054302587, 144315}, NULL) = 0
ioctl(3, 0x2285, 0xbffff25c)            = 0
gettimeofday({1054302587, 150267}, NULL) = 0
gettimeofday({1054302587, 150526}, NULL) = 0
ioctl(3, 0x2285, 0xbffff25c)            = 0
gettimeofday({1054302587, 151355}, NULL) = 0
write(2, "Capacity: 49843 Blocks = 99686 k"..., 61Capacity: 49843 Blocks = 99686 kBytes = 97 MBytes = 102 prMB
) = 61
write(2, "Sectorsize: 2048 Bytes\n", 23Sectorsize: 2048 Bytes
) = 23
gettimeofday({1054302587, 152679}, NULL) = 0
ioctl(3, 0x2285, 0xbfffedfc)            = 0
gettimeofday({1054302587, 156396}, NULL) = 0
gettimeofday({1054302587, 156644}, NULL) = 0
ioctl(3, 0x2285, 0xbfffec7c)            = 0
...
...[snip]...
...
ioctl(3, 0x2285, 0xbfffefcc)            = 0
gettimeofday({1054302587, 244917}, NULL) = 0
write(2, "Copy from SCSI (0,0,0) disk to f"..., 48Copy from SCSI (0,0,0) disk to file '/dev/null'
) = 48
open("/dev/null", O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = 4
fcntl64(4, F_GETFL)                     = 0x8001 (flags O_WRONLY|O_LARGEFILE)
fstat64(4, {st_mode=S_IFCHR|0666, st_rdev=makedev(1, 3), ...}) = 0
ioctl(4, SNDCTL_TMR_TIMEBASE, 0xbfffedb8) = -1 ENOTTY (Inappropriate ioctl for device)
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40017000
_llseek(4, 0, [0], SEEK_CUR)            = 0
munmap(0x40017000, 4096)                = 0
write(2, "end:     49843\n", 15end:     49843
)        = 15
gettimeofday({1054302587, 248522}, NULL) = 0
) = 232, "addr:        0 cnt: 48\r", 23addr:        0 cnt: 48
gettimeofday({1054302587, 249061}, NULL) = 0
ioctl(3, 0x2285, 0xbfffef6c)            = 0
gettimeofday({1054302587, 259824}, NULL) = 0
write(2, "/opt/schily/bin/readcd: Success."..., 352/opt/schily/bin/readcd: Success. read_cd: scsi sendcmd: no error
CDB:  BE 00 00 00 00 00 00 00 30 FA 00 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: 70
Sense Key: 0x0 No Additional Sense, Segment 0
Sense Code: 0x00 Qual 0x00 (no additional sense information) Fru 0x0
Sense flags: Blk 0 (not valid) 
resid: 127008
cmd finished after 0.010s timeout 40s
) = 352
write(2, "/opt/schily/bin/readcd: Success."..., 57/opt/schily/bin/readcd: Success. Cannot read source disk
) = 57
write(2, "/opt/schily/bin/readcd: Retrying"..., 48/opt/schily/bin/readcd: Retrying from sector 0.
) = 48
write(2, ".", 1.)                        = 1
gettimeofday({1054302587, 262470}, NULL) = 0
ioctl(3, 0x2285, 0xbfffcf4c)            = 0
gettimeofday({1054302587, 263143}, NULL) = 0
gettimeofday({1054302587, 263402}, NULL) = 0



  reply	other threads:[~2003-05-30 13:41 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-30 13:02 [PATCH] SG_IO readcd and various bugs Jens Axboe
2003-05-30 13:47 ` Markus Plail
2003-05-30 13:52   ` Markus Plail [this message]
2003-05-30 14:58     ` Jens Axboe
2003-05-30 16:57       ` Markus Plail
2003-06-01  7:50         ` uaca
2003-06-01  9:18           ` Markus Plail
2003-06-01 10:19             ` uaca
  -- strict thread matches above, loose matches on Subject: below --
2003-05-31  8:23 Douglas Gilbert
2003-05-31 10:57 ` Jens Axboe
2003-06-01  7:39   ` Douglas Gilbert
2003-06-02  7:27     ` Jens Axboe
2003-06-03  5:23       ` Douglas Gilbert
2003-06-03  5:39         ` Nick Piggin
2003-06-03  8:29         ` Jens Axboe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874r3cpmmv.fsf@gitteundmarkus.de \
    --to=linux-kernel@gitteundmarkus.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox