lkml.org 
[lkml]   [2010]   [May]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [dm-devel] [PATCH v3 3/3] dm: lookup devices by path with name_to_dev_t
On Wed, May 19, 2010 at 01:38:24PM -0500, Will Drewry wrote:
> + char base_path[32]; /* size from name_to_dev_t */

> + /* stage the shorter path for name_to_dev_t. */
> + strncpy(base_path, path, sizeof(base_path));

I'm dropping that, and just passing path directly, so the strlen test
will be used. (There's a "name += 5" in there so 32 would ignore
any longer standard names anyway.)

Alasdair



\
 
 \ /
  Last update: 2010-05-24 14:01    [W:0.058 / U:0.312 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site