mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Additional rename failure error message.
This commit is contained in:
parent
1cbfe69961
commit
e5def0bab5
@ -1,5 +1,6 @@
|
||||
Version 2.01.08 -
|
||||
================================
|
||||
Additional rename failure error message.
|
||||
read/write may be macros.
|
||||
|
||||
Version 2.01.07 - 8th March 2005
|
||||
|
@ -86,7 +86,11 @@ int lvm_rename(const char *old, const char *new)
|
||||
{
|
||||
struct stat buf;
|
||||
|
||||
link(old, new);
|
||||
if (link(old, new)) {
|
||||
log_error("%s: rename to %s failed: %s", old, new,
|
||||
strerror(errno));
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (stat(old, &buf)) {
|
||||
log_sys_error("stat", old);
|
||||
|
Loading…
Reference in New Issue
Block a user