* Recommended change
@ 2001-08-17 9:57 Mike Black
2001-08-17 10:42 ` Andreas Dilger
0 siblings, 1 reply; 2+ messages in thread
From: Mike Black @ 2001-08-17 9:57 UTC (permalink / raw)
To: linux-kernel
I upgraded to e2fsprog-1.23 and LInux 2.4.8 yesterday and saw this:
Aug 16 08:58:20 yeti kernel: md: fsck.ext3(pid 207) used obsolete MD ioctl,
upgrade your software to use new ictls.
Do you suppose we could change the printk line to actually output the ioctl
that was requested?
i.e.:
/usr/src/linux/drivers/md/md.c
default:
printk(KERN_WARNING "md: %s(pid %d) used obsolete MD
ioctl(%d), upgrade your software to use new ictls.\n", current->comm,
current->pid, cmd);
Might help debugging this stuff a little easier.
________________________________________
Michael D. Black Principal Engineer
mblack@csihq.com 321-676-2923,x203
http://www.csihq.com Computer Science Innovations
http://www.csihq.com/~mike My home page
FAX 321-676-2355
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Recommended change
2001-08-17 9:57 Recommended change Mike Black
@ 2001-08-17 10:42 ` Andreas Dilger
0 siblings, 0 replies; 2+ messages in thread
From: Andreas Dilger @ 2001-08-17 10:42 UTC (permalink / raw)
To: Mike Black; +Cc: linux-kernel
On Aug 17, 2001 05:57 -0400, Mike Black wrote:
> I upgraded to e2fsprog-1.23 and LInux 2.4.8 yesterday and saw this:
>
> Aug 16 08:58:20 yeti kernel: md: fsck.ext3(pid 207) used obsolete MD ioctl,
> upgrade your software to use new ictls.
>
> Do you suppose we could change the printk line to actually output the ioctl
> that was requested?
>
> i.e.:
>
> /usr/src/linux/drivers/md/md.c
>
> default:
> printk(KERN_WARNING "md: %s(pid %d) used obsolete MD
> ioctl(%d), upgrade your software to use new ictls.\n", current->comm,
> current->pid, cmd);
Some notes:
1) It should probably print the ioctl as 0x%X, because this makes it a lot
easier to decode which ioctl it is.
2) The ioctl in question is actually BLKGETSIZE64, which is part of Jens'
64-bit block device patch, but is not part of the stock kernel. It
was added to e2fsprogs in order to support devices > 2TB.
3) Drivers probably shouldn't complain about ioctls they don't understand,
as it just causes a lot of grief (see this thread here). If anything,
they _could_ complain about specific obsolete ioctl numbers, or maybe
ioctl numbers in their "allocated" namespace (0x09 for MD it appears).
Even so, this "breaks" forward compatibility, if tools try to use a
new ioctl on an older kernel before falling back to the old ioctl, you
get a lot of spurious warnings.
Cheers, Andreas
--
Andreas Dilger \ "If a man ate a pound of pasta and a pound of antipasto,
\ would they cancel out, leaving him still hungry?"
http://www-mddsp.enel.ucalgary.ca/People/adilger/ -- Dogbert
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-08-17 10:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-08-17 9:57 Recommended change Mike Black
2001-08-17 10:42 ` Andreas Dilger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox