From: Alasdair Kergon Date: Thu, 29 Aug 2013 15:37:45 +0000 (+0100) Subject: dm ioctl: prevent rename to empty name or uuid X-Git-Tag: v3.12-rc1~70^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c2b04824620f30b52bb2fdcdd14c758b8c62c70f;p=pandora-kernel.git dm ioctl: prevent rename to empty name or uuid A device-mapper device must always have a name consisting of a non-empty string. If the device also has a uuid, this similarly must not be an empty string. The DM_DEV_CREATE ioctl enforces these rules when the device is created, but this patch is needed to enforce them when DM_DEV_RENAME is used to change the name or uuid. Reported-by: Zdenek Kabelac Signed-off-by: Alasdair G Kergon Signed-off-by: Mike Snitzer Acked-by: Mikulas Patocka --- Reading git-diff-tree failed