[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1381191145.2081.230.camel@joe-AO722>
Date: Mon, 07 Oct 2013 17:12:25 -0700
From: Joe Perches <joe@...ches.com>
To: Geyslan Gregório Bem <geyslan@...il.com>
Cc: Eric Van Hensbergen <ericvh@...il.com>, rminnich@...dia.gov,
lucho@...kov.net, v9fs-developer@...ts.sourceforge.net,
linux-kernel@...r.kernel.org,
kernel-br <kernel-br@...glegroups.com>
Subject: Re: [PATCH] 9p: unsigned/signed wrap in p9/unix modes.
On Mon, 2013-10-07 at 21:09 -0300, Geyslan Gregório Bem wrote:
> Joe,
>
> Thank you for reply.
>
> What do you think about:
>
> strncpy(ext, stat->extension, sizeof(ext));
> + if (sscanf(ext, "%c %u %u", &type, &major, &minor) < 3) {
> + p9_debug(P9_DEBUG_ERROR,
> + "It's necessary define type, major
> and minor values when using P9_DMDEVICE");
> + return res;
> + }
> switch (type) {
> case 'c':
> res |= S_IFCHR;
> break;
> ...
> *rdev = MKDEV(major, minor);
I think the plan 9 folk should figure out what's right.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists