Rename move_dirty to move_no_remote.
This commit is contained in:
parent
81517d457c
commit
e8225e0812
@ -2,8 +2,10 @@ ChangeLog for davfs2
|
|||||||
--------------------
|
--------------------
|
||||||
|
|
||||||
2009-05-21 Werner Baumann (werner.baumann@onlinehome.de)
|
2009-05-21 Werner Baumann (werner.baumann@onlinehome.de)
|
||||||
* cache.ce, move_dirty, move_reg:
|
* cache.c, move_dirty, move_reg:
|
||||||
Use converted file name for dst_path.
|
Use converted file name for dst_path.
|
||||||
|
* cache.c:
|
||||||
|
Rename move_dirty to Move_no_remote.
|
||||||
|
|
||||||
2009-05-15 Werner Baumann (werner.baumann@onlinehome.de)
|
2009-05-15 Werner Baumann (werner.baumann@onlinehome.de)
|
||||||
* cache.c, dav_close:
|
* cache.c, dav_close:
|
||||||
|
15
src/cache.c
15
src/cache.c
@ -273,7 +273,7 @@ move_dir(dav_node *src, dav_node *dst, dav_node *dst_parent,
|
|||||||
const char *dst_name);
|
const char *dst_name);
|
||||||
|
|
||||||
static int
|
static int
|
||||||
move_dirty(dav_node *src, dav_node *dst, dav_node *dst_parent,
|
move_no_remote(dav_node *src, dav_node *dst, dav_node *dst_parent,
|
||||||
const char *dst_name);
|
const char *dst_name);
|
||||||
|
|
||||||
static int
|
static int
|
||||||
@ -1253,7 +1253,7 @@ dav_rename(dav_node *src_parent, const char *src_name, dav_node *dst_parent,
|
|||||||
ret = move_dir(src, dst, dst_parent, dst_name);
|
ret = move_dir(src, dst, dst_parent, dst_name);
|
||||||
} else {
|
} else {
|
||||||
if (is_created(src) || is_backup(src)) {
|
if (is_created(src) || is_backup(src)) {
|
||||||
ret = move_dirty(src, dst, dst_parent, dst_name);
|
ret = move_no_remote(src, dst, dst_parent, dst_name);
|
||||||
} else {
|
} else {
|
||||||
ret = move_reg(src, dst, dst_parent, dst_name);
|
ret = move_reg(src, dst, dst_parent, dst_name);
|
||||||
}
|
}
|
||||||
@ -1827,11 +1827,14 @@ move_dir(dav_node *src, dav_node *dst, dav_node *dst_parent,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* As the most recent version of file src is local, it deletes src and dst
|
/* src does not exist on the server, but there may be a locked null-resource.
|
||||||
on the server and locks dst.
|
- if dst exists it will be removed, local and remote
|
||||||
CLEAN-UP-NEEDED: no longer used with dirty files. Remote must not exist. */
|
- if src is locked, it is unlocked
|
||||||
|
- the path of src is changed according dst_name
|
||||||
|
- dst is locked on the server
|
||||||
|
- src is moved to its new position in the tree. */
|
||||||
static int
|
static int
|
||||||
move_dirty(dav_node *src, dav_node *dst, dav_node *dst_parent,
|
move_no_remote(dav_node *src, dav_node *dst, dav_node *dst_parent,
|
||||||
const char *dst_name)
|
const char *dst_name)
|
||||||
{
|
{
|
||||||
if (dst && is_dir(dst))
|
if (dst && is_dir(dst))
|
||||||
|
Loading…
Reference in New Issue
Block a user