mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
Additional rename failure error message.
This commit is contained in:
parent
1cbfe69961
commit
e5def0bab5
@ -1,5 +1,6 @@
|
|||||||
Version 2.01.08 -
|
Version 2.01.08 -
|
||||||
================================
|
================================
|
||||||
|
Additional rename failure error message.
|
||||||
read/write may be macros.
|
read/write may be macros.
|
||||||
|
|
||||||
Version 2.01.07 - 8th March 2005
|
Version 2.01.07 - 8th March 2005
|
||||||
|
@ -86,7 +86,11 @@ int lvm_rename(const char *old, const char *new)
|
|||||||
{
|
{
|
||||||
struct stat buf;
|
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)) {
|
if (stat(old, &buf)) {
|
||||||
log_sys_error("stat", old);
|
log_sys_error("stat", old);
|
||||||
|
Loading…
Reference in New Issue
Block a user