fix data inconsistency, create recursively

This commit is contained in:
Axel Kittenberger 2010-12-15 13:33:48 +00:00
parent 93c7f5ceab
commit fb177b3126
3 changed files with 5 additions and 3 deletions

View File

@ -377,7 +377,7 @@ open_fsevents(lua_State *L)
printlogf(L, "Warn", printlogf(L, "Warn",
"Using /dev/fsevents which is considered an OSX internal interface."); "Using /dev/fsevents which is considered an OSX internal interface.");
printlogf(L, "Warn", printlogf(L, "Warn",
"Functionality might break across OSX versions"); "Functionality might break across OSX versions (This is for 10.5.X)");
printlogf(L, "Warn", printlogf(L, "Warn",
"A hanging Lsyncd might cause Spotlight/Timemachine doing extra work."); "A hanging Lsyncd might cause Spotlight/Timemachine doing extra work.");

View File

@ -3042,7 +3042,9 @@ local default_rsync = {
local paths = elist.getPaths( local paths = elist.getPaths(
function(etype, path1, path2) function(etype, path1, path2)
if etype == "Delete" and string.byte(path1, -1) == 47 then if (etype == "Delete" or etype == "Create")
and string.byte(path1, -1) == 47
then
return sub(path1) .. "***", sub(path2) return sub(path1) .. "***", sub(path2)
else else
return sub(path1), sub(path2) return sub(path1), sub(path2)

View File

@ -18,7 +18,7 @@ local pid = spawn("./lsyncd", "-nodaemon", "-delay", "5",
cwriteln("waiting for Lsyncd to startup") cwriteln("waiting for Lsyncd to startup")
posix.sleep(1) posix.sleep(1)
churn(srcdir, 100) churn(srcdir, 500)
cwriteln("waiting for Lsyncd to finish its jobs.") cwriteln("waiting for Lsyncd to finish its jobs.")
posix.sleep(10) posix.sleep(10)