1
0
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:
Alasdair Kergon 2005-03-10 22:31:10 +00:00
parent 1cbfe69961
commit e5def0bab5
2 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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);