On Sun, Nov 08, 2015 at 04:33:03PM +0100, Michael Lass wrote:
> In current versions of util-linux the buffer passed to blkid_devno_to_wholedisk
> has to be sufficiently large to not only hold the device name but the complete
> target of the /sys/dev/block/<maj:min> symlink. This was changed only recently
> in 4419ffb9eff5801fdbd385a4a6199b3877f802ad.
>
> The small buffer size currently can lead to failure of is_ssd due to truncated
> device names:
>
> readlink("/sys/dev/block/254:7", "../../devices/virtual/block/dm-", 31) = 31
> open("/sys/block/dm-/queue/rotational", O_RDONLY) = -1 ENOENT (No such file or directory)
>
> Signed-off-by: Michael Lass <bevan@xxxxxxxxx>
Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html