From: Alasdair G Kergon <agk@redhat.com>
To: "Darrick J. Wong" <djwong@us.ibm.com>
Cc: dm-devel@redhat.com, Chris McDermott <lcm@us.ibm.com>,
linux-kernel@vger.kernel.org
Subject: Re: [dm-devel] Re: [PATCH] User-configurable HDIO_GETGEO for dm volumes
Date: Fri, 17 Feb 2006 15:21:47 +0000 [thread overview]
Message-ID: <20060217152147.GF12169@agk.surrey.redhat.com> (raw)
In-Reply-To: <20060217151650.GC12173@agk.surrey.redhat.com>
On Fri, Feb 17, 2006 at 03:16:50PM +0000, Alasdair G Kergon wrote:
> +static int dm_blk_getgeo(struct block_device *bdev, struct hd_geometry *geo)
> +{
> + struct mapped_device *md = bdev->bd_disk->private_data;
> +
> + return dm_table_get_geometry(md->map, geo);
> +}
>
> And if md->map is NULL?
See also:
/*
* Everyone (including functions in this file), should use this
* function to access the md->map field, and make sure they call
* dm_table_put() when finished.
*/
struct dm_table *dm_get_table(struct mapped_device *md)
Alasdair
--
agk@redhat.com
next prev parent reply other threads:[~2006-02-17 15:21 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-15 20:22 Darrick J. Wong
2006-02-16 3:05 ` Andrew Morton
2006-02-17 1:31 ` Darrick J. Wong
2006-02-17 1:49 ` Andrew Morton
2006-02-17 15:16 ` Alasdair G Kergon
2006-02-17 15:21 ` Alasdair G Kergon [this message]
2006-02-18 0:59 ` Darrick J. Wong
2006-02-19 1:25 ` [dm-devel] " Alasdair G Kergon
2006-02-22 22:32 ` Alasdair G Kergon
2006-02-23 0:46 ` Darrick J. Wong
2006-02-23 13:56 ` Alasdair G Kergon
2006-02-23 18:16 ` Darrick J. Wong
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=20060217152147.GF12169@agk.surrey.redhat.com \
--to=agk@redhat.com \
--cc=djwong@us.ibm.com \
--cc=dm-devel@redhat.com \
--cc=lcm@us.ibm.com \
--cc=linux-kernel@vger.kernel.org \
/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®