Re: [libvirt] [PATCH 1/6] Fix virDiskNameToIndex to actually ignore partition numbers

2012-11-23 Thread Martin Kletzander
On 11/22/2012 05:48 PM, Daniel P. Berrange wrote: > From: "Daniel P. Berrange" > > The docs for virDiskNameToIndex claim it ignores partition > numbers. In actual fact though, a code ordering buy means s/buy/bug/ > that a partition number will cause the code to accidentally > multiply the resul

[libvirt] [PATCH 1/6] Fix virDiskNameToIndex to actually ignore partition numbers

2012-11-22 Thread Daniel P. Berrange
From: "Daniel P. Berrange" The docs for virDiskNameToIndex claim it ignores partition numbers. In actual fact though, a code ordering buy means that a partition number will cause the code to accidentally multiply the result by 26. Signed-off-by: Daniel P. Berrange --- src/util/util.c | 3 +--