From: Andreas Dilger <adilger@turbolabs.com>
To: Christoph Hellwig <hch@caldera.de>, linux-lvm@sistina.com
Subject: Re: [linux-lvm] A Caldera related bug?
Date: Thu, 30 Aug 2001 03:23:21 -0600 [thread overview]
Message-ID: <20010830032321.I541@turbolinux.com> (raw)
In-Reply-To: <20010830090848.A27345@caldera.de>
On Aug 30, 2001 09:08 +0200, Christoph Hellwig wrote:
> This is because LVM is _completly_ broken by including kernel headers all
> over theplace, and - even worse - sometimes even defining __KERNEL__ and
> using kernel-only datatypes.
Yes, it is going to be ugly when kdev_t is no longer == dev_t.
> --- LVM/1.0.1-rc1/kernel/lvm.h~ Thu Aug 30 09:00:30 2001
> +++ LVM/1.0.1-rc1/kernel/lvm.h Thu Aug 30 09:02:47 2001
> @@ -110,10 +110,7 @@
> #include <linux/kdev_t.h>
> #include <linux/list.h>
> #else
> -#define __KERNEL__
> #include <linux/kdev_t.h>
> -#include <linux/list.h>
> -#undef __KERNEL__
> #endif /* #ifndef __KERNEL__ */
In this case, you may as well just remove the whole "#ifdef __KERNEL__"
part of the header here.
> /* remap physical sector/rdev pairs including hash */
> typedef struct lv_block_exception_v1 {
> +#ifdef __KERNEL__
> struct list_head hash;
> +#else
> + uint64_t hash; /* XXX b0rken on 64bit plattforms */
> +#endif
Maybe the non-kernel part can be considered as two void * pointers?
I'm not sure if that will work on sparc64, if the kernel and user
pointer sizes are not the same.
In the end, what is really needed is a well-defined LVM API between
kernel and user-space that doesn't pass this kind of stuff.
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
next prev parent reply other threads:[~2001-08-30 9:23 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-08-29 23:04 [linux-lvm] A Caldera related bug? dan_mcmanus
2001-08-30 7:08 ` Christoph Hellwig
2001-08-30 9:23 ` Andreas Dilger [this message]
2001-08-30 9:37 ` Patrick Caulfield
2001-08-30 9:46 ` Christoph Hellwig
2001-08-30 11:09 ` Joe Thornber
2001-08-30 12:16 ` Christoph Hellwig
2001-08-30 15:03 ` Joe Thornber
2001-08-30 16:11 ` Christoph Hellwig
-- strict thread matches above, loose matches on Subject: below --
2001-08-30 16:38 dan_mcmanus
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=20010830032321.I541@turbolinux.com \
--to=adilger@turbolabs.com \
--cc=hch@caldera.de \
--cc=linux-lvm@sistina.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