diff options
author | Alasdair Kergon <[email protected]> | 2013-08-29 16:37:45 +0100 |
---|---|---|
committer | Mike Snitzer <[email protected]> | 2013-09-05 20:46:06 -0400 |
commit | c2b04824620f30b52bb2fdcdd14c758b8c62c70f (patch) | |
tree | 5a6c619a3f7fe93c074c437c5e7a9bb23fcecbe2 /tools/perf/util/trace-event-scripting.c | |
parent | d6fc204201ca7d019ab0eb5304d1e5c690ddedc8 (diff) |
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 <[email protected]>
Signed-off-by: Alasdair G Kergon <[email protected]>
Signed-off-by: Mike Snitzer <[email protected]>
Acked-by: Mikulas Patocka <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions