mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@osdl.org>
To: Kevin Corry <kevcorry@us.ibm.com>
Cc: linux-kernel@vger.kernel.org, agk@redhat.com, mbroz@redhat.com,
	hch@lst.de
Subject: Re: [PATCH 01/15] dm: support ioctls on mapped devices
Date: Thu, 22 Jun 2006 20:49:07 -0700	[thread overview]
Message-ID: <20060622204907.48c0b841.akpm@osdl.org> (raw)
In-Reply-To: <200606222231.17465.kevcorry@us.ibm.com>

On Thu, 22 Jun 2006 22:31:16 -0500
Kevin Corry <kevcorry@us.ibm.com> wrote:

> On Thu June 22 2006 11:55 am, Andrew Morton wrote:
> > On Thu, 22 Jun 2006 16:17:21 +0100 Alasdair G Kergon <agk@redhat.com> wrote:
> > > On Thu, Jun 22, 2006 at 01:29:57AM -0700, Andrew Morton wrote:
> > > See also block/scsi_ioctl.c:201 verify_command()  [scsi_cmd_ioctl]
> > >          * file can be NULL from ioctl_by_bdev()...
> > >
> > > Or should we be working towards eliminating interfaces that use device
> > > numbers?
> >
> > If possible.  I guess that would require DM to track the devices with
> > file*'s or inode*'s or bdev*'s.  Which, I assume, would be non-trivial.
> 
> There already is a bdev pointer available. Each "consumed" device get a struct 
> dm_dev, which has a *bdev field. From the bdev, it looks like we should be 
> able to get to the gendisk, then the block_device_operations, and then the 
> ioctl routine (if it exists). Correct?
> 

My head is spinning in a twisty maze of ioctls.  What _should_ we call? 
file_operations.foo_ioctl() or block_device_operations.foo_ioctl() or
blkdev_ioctl()?

I think as far as the user is concerned, file_operations.foo_ioctl(),
because that's what the user would end up calling against /dev/sda. 
Whether that's always, reliably, equivalent to
block_device_operations.foo_ioctl() I am presently disinclined to spare
time to discover.

  reply	other threads:[~2006-06-23  3:49 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-21 19:31 Alasdair G Kergon
2006-06-22  3:52 ` Andrew Morton
2006-06-22  8:15   ` Milan Broz
2006-06-22  8:29     ` Andrew Morton
2006-06-22 15:17       ` Alasdair G Kergon
2006-06-22 16:55         ` Andrew Morton
2006-06-23  3:31           ` Kevin Corry
2006-06-23  3:49             ` Andrew Morton [this message]
2006-06-23 10:01               ` Christoph Hellwig
2006-06-23 10:00           ` Christoph Hellwig
     [not found]             ` <20060623032108.28debec2.akpm@osdl.org>
2006-06-23 13:13               ` Milan Broz
2006-06-22 13:21   ` Alasdair G Kergon
2006-07-05  3:22 ` Arnd Bergmann

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=20060622204907.48c0b841.akpm@osdl.org \
    --to=akpm@osdl.org \
    --cc=agk@redhat.com \
    --cc=hch@lst.de \
    --cc=kevcorry@us.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mbroz@redhat.com \
    /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

all inboxes | Powered by JetHome®