lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20090503020528.GA25826@mit.edu>
Date:	Sat, 2 May 2009 22:05:28 -0400
From:	Theodore Tso <tytso@....edu>
To:	Karel Zak <kzak@...hat.com>
Cc:	linux-ext4@...r.kernel.org, Eric Sandeen <sandeen@...hat.com>
Subject: Re: [PATCH] blkid: use /dev/mapper/<name> rather than /dev/dm-<N>

On Mon, Apr 27, 2009 at 03:00:57PM +0200, Karel Zak wrote:
> The libblkid (since v1.41.1) returns private device-mapper names (e.g.
> /dev/dm-0). It's because the probe_one() function scans /dev before
> /dev/mapper.

Checked in, thanks.  Debian-derived distributions don't create
/dev/dm-X names, which is why I didn't notice this issue.  However,
because of this, I modified your patch to keep this chunk which you removed:

> -	/* Do a short-cut scan of /dev/mapper first */
> -	if (!devname)
> -		blkid__scan_dir("/dev/mapper", devno, 0, &devname);

For distributions that don't create /dev/dm-X devices, your check
above won't find the device name, so after searching /dev, we need to
do a short-cut scan of /dev/mapper before we do a full brute force
search via blkid_devno_to_devname.

							- Ted
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ