[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[dm-devel] Re: [RFC 3/3] dm: v4 ioctl interface
- From: Joe Thornber <thornber sistina com>
- To: Kevin Corry <kevcorry us ibm com>
- Cc: DevMapper <dm-devel sistina com>,Linux Mailing List <linux-kernel vger kernel org>
- Subject: [dm-devel] Re: [RFC 3/3] dm: v4 ioctl interface
- Date: Wed Jul 2 04:00:02 2003
On Tue, Jul 01, 2003 at 03:05:07PM -0500, Kevin Corry wrote:
> The "unregister" call needs to be before the actual rename. Same patch as a
> couple weeks ago.
Agreed.
> > +static int check_name(const char *name)
> > +{
> > + if (strchr(name, '/')) {
> > + DMWARN("invalid device name");
> > + return -EINVAL;
> > + }
> > +
> > + return 0;
> > +}
>
> Can't we allow slashes in device names? I thought we discussed this before
> (http://marc.theaimsgroup.com/?t=104628092700011&r=1&w=2). Any reason for the
> change?
I think I made the wrong decision before. Still thinking about it though.
> Does this imply that if the dm_swap_table() call fails, then the "inactive"
> mapping is automatically deleted?
Yes, that is the behaviour ATM. Would you rather it didn't ?
> As a side note, the __bind() function in dm.c currently will never return an
> error, so dm_swap_table() doesn't necessarily need to check for one.
y, __bind can become void.
- Joe
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]