* "ata73" == "sd 72" ?
@ 2008-04-18 0:30 Mark Lord
2008-04-18 6:22 ` Jeff Garzik
0 siblings, 1 reply; 4+ messages in thread
From: Mark Lord @ 2008-04-18 0:30 UTC (permalink / raw)
To: Tejun Heo, Jeff Garzik, IDE/ATA development list
While working on sata_mv today, I noticed something weird in the syslog.
The messages from libata show "ata73" for the port with my drives (pmp),
but the messages from SCSI (sd) show "sd 72" for those same drives.
One would really think that these two numbers should agree,
not be off by one. I wonder why they differ (or why they are
almost the same) ?
ata73.00: ATA-7: ST3400832AS, 3.03, max UDMA/133
ata73.00: 781422768 sectors, multi 0: LBA48 NCQ (depth 31/32)
ata73.00: configured for UDMA/133
ata73.02: ATA-7: ST3400832AS, 3.03, max UDMA/133
ata73.02: 781422768 sectors, multi 0: LBA48 NCQ (depth 31/32)
ata73.02: configured for UDMA/133
ata73: EH complete
ata74: SATA link down (SStatus 0 SControl 300)
ata75: SATA link down (SStatus 0 SControl 300)
ata76: SATA link down (SStatus 0 SControl 300)
scsi 72:0:0:0: Direct-Access ATA ST3400832AS 3.03 PQ: 0 ANSI: 5
sd 72:0:0:0: [sdb] 781422768 512-byte hardware sectors (400088 MB)
sd 72:0:0:0: [sdb] Write Protect is off
sd 72:0:0:0: [sdb] Mode Sense: 00 3a 00 00
sd 72:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sd 72:0:0:0: [sdb] 781422768 512-byte hardware sectors (400088 MB)
sd 72:0:0:0: [sdb] Write Protect is off
sd 72:0:0:0: [sdb] Mode Sense: 00 3a 00 00
sd 72:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sdb: sdb1
sd 72:0:0:0: [sdb] Attached SCSI disk
sd 72:0:0:0: Attached scsi generic sg2 type 0
scsi 72:2:0:0: Direct-Access ATA ST3400832AS 3.03 PQ: 0 ANSI: 5
sd 72:2:0:0: [sdc] 781422768 512-byte hardware sectors (400088 MB)
sd 72:2:0:0: [sdc] Write Protect is off
sd 72:2:0:0: [sdc] Mode Sense: 00 3a 00 00
sd 72:2:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sd 72:2:0:0: [sdc] 781422768 512-byte hardware sectors (400088 MB)
sd 72:2:0:0: [sdc] Write Protect is off
sd 72:2:0:0: [sdc] Mode Sense: 00 3a 00 00
sd 72:2:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: "ata73" == "sd 72" ?
2008-04-18 0:30 "ata73" == "sd 72" ? Mark Lord
@ 2008-04-18 6:22 ` Jeff Garzik
2008-04-18 8:13 ` Mikael Pettersson
0 siblings, 1 reply; 4+ messages in thread
From: Jeff Garzik @ 2008-04-18 6:22 UTC (permalink / raw)
To: Mark Lord; +Cc: Tejun Heo, IDE/ATA development list
Mark Lord wrote:
> While working on sata_mv today, I noticed something weird in the syslog.
> The messages from libata show "ata73" for the port with my drives (pmp),
> but the messages from SCSI (sd) show "sd 72" for those same drives.
>
> One would really think that these two numbers should agree,
> not be off by one. I wonder why they differ (or why they are
> almost the same) ?
Just historical reasons, one counts from zero and the other does not...
Jeff
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: "ata73" == "sd 72" ?
2008-04-18 6:22 ` Jeff Garzik
@ 2008-04-18 8:13 ` Mikael Pettersson
2008-04-24 3:38 ` Tejun Heo
0 siblings, 1 reply; 4+ messages in thread
From: Mikael Pettersson @ 2008-04-18 8:13 UTC (permalink / raw)
To: Jeff Garzik; +Cc: Mark Lord, Tejun Heo, IDE/ATA development list
Jeff Garzik writes:
> Mark Lord wrote:
> > While working on sata_mv today, I noticed something weird in the syslog.
> > The messages from libata show "ata73" for the port with my drives (pmp),
> > but the messages from SCSI (sd) show "sd 72" for those same drives.
> >
> > One would really think that these two numbers should agree,
> > not be off by one. I wonder why they differ (or why they are
> > almost the same) ?
>
> Just historical reasons, one counts from zero and the other does not...
Could this possibly be changed, please? I've noticed this
discrepancy myself and it really is confusing.
Maybe the mapping exists in sysfs, but navigating sysfs is
an absolute nightmare IMO so I wouldn't know how to find it.
/Mikael
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: "ata73" == "sd 72" ?
2008-04-18 8:13 ` Mikael Pettersson
@ 2008-04-24 3:38 ` Tejun Heo
0 siblings, 0 replies; 4+ messages in thread
From: Tejun Heo @ 2008-04-24 3:38 UTC (permalink / raw)
To: Mikael Pettersson; +Cc: Jeff Garzik, Mark Lord, IDE/ATA development list
Mikael Pettersson wrote:
> Jeff Garzik writes:
> > Mark Lord wrote:
> > > While working on sata_mv today, I noticed something weird in the syslog.
> > > The messages from libata show "ata73" for the port with my drives (pmp),
> > > but the messages from SCSI (sd) show "sd 72" for those same drives.
> > >
> > > One would really think that these two numbers should agree,
> > > not be off by one. I wonder why they differ (or why they are
> > > almost the same) ?
> >
> > Just historical reasons, one counts from zero and the other does not...
>
> Could this possibly be changed, please? I've noticed this
> discrepancy myself and it really is confusing.
>
> Maybe the mapping exists in sysfs, but navigating sysfs is
> an absolute nightmare IMO so I wouldn't know how to find it.
I hope it could be changed too but it can also irritate a lot of people.
:-(
--
tejun
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-04-24 3:38 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-18 0:30 "ata73" == "sd 72" ? Mark Lord
2008-04-18 6:22 ` Jeff Garzik
2008-04-18 8:13 ` Mikael Pettersson
2008-04-24 3:38 ` Tejun Heo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).