rfa.ps

来自「ftam等标准协议服务器和客户端的源代码。」· PS 代码 · 共 1,762 行 · 第 1/5 页

PS
1,762
字号
(is)S 17 x(given,)S 18 x(the)S 18 x(current)S 18 x(working)S 17 x(directory)S 18 x(is)S 18 x(listed.)S 27 x(The)S 18 x(output)S 18 x(of)S 17 x(the)S 18 x F75(list)S 18 x F44(command)S 18 x(is)S 58 y 295 X(similar)S 19 x(to)S 19 x(the)S 18 x(output)S 18 x(of)S 19 x(the)S 18 x(UNIX)S 19 x F75(ls)S 17 x(-lg)S 18 x F44(command,)S 19 x(e.g.)S 1664 Y 413 X F78(-rw-rw-r--)S 25 x(M-A)S 25 x(ow)S 1011 X(verdi)S 1360 X(754)S 24 x(Jul)S 25 x(12)S 25 x(13:59)S 50 x(.sunview)S 50 y 413 X(drwxr-xr-x)S 25 x(---)S 25 x(ow)S 1011 X(verdi)S 1360 X(512)S 24 x(Jul)S 25 x(12)S 25 x(14:01)S 50 x(bin)S1804 Y 295 X F44(The)S 15 x(three)S 15 x(character)S 15 x(\014eld)S16 x(after)S 15 x(the)S 15 x(\014le)S 15 x(permissions)S 15 x(is)S16 x(used)S 15 x(to)S 15 x(indicated)S 16 x(the)S 16 x(dif)S -1 x(ferent)S 15 x(rfa-speci\014c)S 16 x(states)S 59 y 295 X(of)S 17 x(the)S 17 x(\014le.)S 25 x(The)S 17 x(\014rst)S 17 x(character)S 17 x(indicates)S 17 x(the)S 17 x(status)S 17 x(of)S 17 x(the)S 17 x(\014le,)S 18 x(with)S 17 x F78(M)S 17 x F44(for)S 17 x(master)S 17 x(version,)S 17 x F78(S)S 17 x F44(for)S 17 x(slave)S 58 y 295 X(V)S -5 x(ersion)S 13 x(and)S 13 x F78(-)S 13 x F44(for)S 13 x(unregistered)S 13 x(version.)S 20 x(The)S 12 x(second)S 13 x(character)S 13 x(is)S 13 x(the)S 13 x(lock)S 13 x(indicator)S 13 x(with)S 13 x(an)S 13 x F78(L)S 12 x F44(indicating)S 58 y 295 X(that)S 14 x(the)S 14 x(\014le)S 13 x(is)S 14 x(currently)S 14 x(locked)S 14 x(and)S 13 x(an)S 13 x F78(-)S 14 x F44(for)S 14 x(unlocked.)S 20 x(The)S 13 x(third)S 14 x(character)S 14 x(indicates)S 14 x(the)S 13 x(transfer)S 14 x(mode)S 58 y 295 X(of)S18 x(the)S 17 x(\014les)S 17 x(with)S 17 x F78(A)S 17 x F44(for)S 17 x(automatic)S 17 x(transfer)S 17 x(and)S 18 x F78(-)S 17 x F44(for)S 18 x(transfer)S 17 x(on)S 18 x(request.)S 2222 Y 295 X F76(3.4)S 50 x(rlist)S 2337 Y 295 X F44(The)S 18 x F75(rlist)S 17 x F44(command)S 17 x(is)S 18 x(similar)S 17 x(to)S 18 x(the)S 18 x F75(list)S 18 x F44(command)S 18 x(with)S 18 x(the)S 17 x(dif)S -1 x(ference)S 17 x(that)S 18 x(the)S 17 x(\014les)S 18 x(in)S 18 x(the)S18 x(directory)S 59 y 295 X(at)S 21 x(the)S 20 x(remote)S 21 x(site)S21 x(are)S 20 x(listed.)S 2580 Y 295 X F76(3.5)S 50 x(lock)S 2696 Y 295 X F44(The)S 14 x F75(lock)S 14 x F44(command)S 14 x(is)S 14 x(used)S 13 x(to)S 13 x(get)S 14 x(a)S 14 x(locked)S 13 x(local)S 14 x(version)S 14 x(of)S 14 x(the)S 13 x(\014le\(s\))S 14 x(that)S14 x(are)S 13 x(provided)S 13 x(as)S 14 x(ar)S -1 x(gument\(s\))S 58 y 295 X(to)S 19 x(the)S 19 x(command.)S 32 x(Only)S 19 x(regular)S19 x(\014les)S 19 x(within)S 19 x(the)S 19 x(shared)S 19 x(subtree)S19 x(are)S 19 x(valid.)S 32 x(It)S 19 x(is)S 19 x(not)S 19 x(possible)S 19 x(to)S 19 x(lock)S 58 y 295 X(directories,)S 16 x(links,)S 16 x(etc.)S 21 x(.)S 21 x(If)S 15 x(the)S 15 x(name)S 15 x(of)S 16 x(the)S 15 x(\014le)S 16 x(to)S 16 x(be)S 15 x(locked)S 15 x(is)S 15 x(a)S 16 x(symbolic)S 16 x(link,)S 15 x(the)S 16 x(\014le)S 15 x(referenced)S 15 x(by)S 58 y 295 X(the)S 18 x(link)S19 x(is)S 18 x(locked)S 18 x(if)S 19 x(it)S 18 x(is)S 18 x(located)S18 x(within)S 18 x(the)S 18 x(shared)S 19 x(subtree.)S 75 y 295 X(The)S 18 x F75(lock)S 18 x F44(command)S 18 x(should)S 18 x(be)S 18 x(used)S 18 x(whenever)S 18 x(a)S 18 x(\014le)S 17 x(within)S 18 x(the)S 18 x(shared)S 18 x(subtree)S 18 x(is)S 18 x(modi\014ed)S18 x(to)S 18 x(ensure)S 58 y 295 X(that)S 18 x(the)S 19 x(local)S 18 x(version)S 18 x(of)S 19 x(the)S 19 x(\014le)S 19 x(is)S 19 x(a\))S 19 x(the)S 18 x(master)S 19 x(version)S 19 x(and)S 18 x(b\))S19 x(not)S 19 x(currently)S 19 x(under)S 18 x(modify-access)S 58 y 295 X(by)S 21 x(another)S 21 x(local)S 21 x(user.)S 3276 Y 1230 X F6(4)S%%PageTrailer/paper-automatic true SPS 1 PP EP%%PageBoundingBox: 71 53 524 794%%PageBoundingBox: (atend)%%BeginPageSetup1000 BP 3507 2481 PM /paper-automatic false SPS 295 0 XY%%EndPageSetup295 231 XY F8(RF)S -3 x(A)S 295 281 XY 846 3 R 1141 281 XY 200 3 R 1340 281 XY 846 3 R -50 y 1874 X(The)S 25 x(RF)S -3 x(A)S 26 x(Client)S 459 Y 295 X F44(If)S 15 x(the)S 15 x(local)S 15 x(version)S 15 x(of)S 15 x(the)S 16 x(\014les)S 15 x(has)S 15 x(a)S16 x(SLA)S -6 x(VE)S 15 x(status,)S 15 x(the)S 15 x(lock)S 15 x(command)S 16 x(will)S 15 x(try)S 15 x(to)S 15 x(get)S 15 x(the)S 15 x(mastership)S 58 y 295 X(for)S 17 x(the)S 18 x(\014le.)S 28 x(Therefore,)S 18 x(it)S 18 x(\014rst)S 17 x(veri\014es)S 18 x(that)S18 x(the)S 17 x(local)S 18 x(version)S 18 x(is)S 17 x(up-to-date,)S19 x(otherwise)S 18 x(it)S 18 x(transfers)S 18 x(the)S 58 y 295 X(up-to-date)S 15 x(version)S 15 x(from)S 16 x(the)S 15 x(current)S16 x(master,)S 16 x(similar)S 15 x(to)S 15 x(the)S 16 x F75(get\014le)S 16 x F44(command.)S 22 x(After)S 15 x(an)S 15 x(up-to-date)S 15 x(local)S 58 y 295 X(version)S 11 x(of)S 11 x(the)S11 x(requested)S 11 x(\014le)S 11 x(exists,)S 12 x(a)S 11 x F75(RequestMaster)S 11 x F44(operation)S 11 x(is)S 11 x(issued)S 11 x(to)S 11 x(the)S 11 x(remote)S 11 x(site)S 11 x(to)S 11 x(transfer)S11 x(the)S 59 y 295 X(mastership.)S 19 x(If)S 13 x(the)S 13 x(\014le)S 14 x(is)S 13 x(not)S 13 x(locked)S 13 x(at)S 13 x(the)S 13 x(remote)S 13 x(site,)S 14 x(the)S 13 x(mastership)S 13 x(is)S 14 x(granted)S 13 x(to)S 14 x(the)S 14 x(local)S 14 x(site)S 13 x(which)S 58 y 295 X(then)S 15 x(is)S 15 x(the)S 15 x(new)S 15 x(master.)S 20 x(The)S 15 x(local)S 16 x(lock)S 15 x(is)S 15 x(set)S15 x(the)S 15 x(by)S 15 x(setting)S 15 x(the)S 16 x F78(L)S F44(\(ocked\))S 15 x(\015ag)S 15 x(in)S 15 x(the)S 15 x(local)S 15 x(\014les)S 15 x(state.)S 831 Y 295 X(If)S 16 x(the)S 16 x(local)S 16 x(version)S 16 x(of)S 16 x(the)S 16 x(requested)S 16 x(\014le)S16 x(already)S 16 x(is)S 16 x(the)S 16 x(MASTER)S 16 x(version)S 16 x(or)S 16 x(is)S 16 x(an)S 16 x(UNREGISTERED)S 58 y 295 X(\014le,)S 22 x(it)S 20 x(is)S 20 x(checked)S 21 x(if)S 20 x(the)S21 x(\014le)S 21 x(is)S 21 x(already)S 21 x(locked)S 21 x(by)S 21 x(another)S 21 x(local)S 21 x(user,)S 22 x(where)S 21 x(the)S 21 x(requested)S 20 x(lock)S 21 x(is)S 58 y 295 X(rejected.)S 22 x(Otherwise)S 16 x(the)S 16 x(local)S 16 x(lock)S 15 x(is)S 15 x(set)S16 x(the)S 15 x(by)S 15 x(setting)S 16 x(the)S 15 x F78(L)S F44(\(ocked\))S 15 x(\015ag)S 16 x(in)S 16 x(the)S 16 x(local)S 16 x(\014les)S 15 x(state.)S 1029 Y 295 X(Because)S 20 x(the)S 19 x(lock)S 19 x(command)S 19 x(will)S 20 x(be)S 19 x(applied)S 19 x(in)S19 x(the)S 19 x(most)S 19 x(cases)S 19 x(to)S 19 x(a)S 20 x(local)S20 x(version)S 19 x(of)S 20 x(the)S 19 x(\014le)S 20 x(that)S 20 x(is)S 58 y 295 X(already)S 17 x(master,)S 18 x(it)S 18 x(is)S 18 x(not)S 17 x(necessary)S 18 x(to)S 18 x(execute)S 18 x(the)S 18 x(whole)S 18 x F75(rfa)S 18 x F44(program)S 17 x(to)S 18 x(do)S 18 x(the)S 18 x(local)S 18 x(lock.)S 28 x(Because)S 58 y 295 X(the)S 16 x F75(rfa)S 16 x F44(program)S 16 x(includes)S 16 x(the)S 16 x(whole)S 16 x(code)S 17 x(needed)S 16 x(for)S 17 x(the)S 17 x(execution)S 17 x(of)S 16 x(the)S 16 x(remote)S 16 x(operations)S 16 x(\(ISODE)S 58 y 295 X(stack,)S 13 x(etc.\),)S 13 x(there)S 12 x(may)S 13 x(be)S 13 x(a)S 13 x(signi\014cant)S 13 x(time)S 13 x(delay)S 12 x(while)S 13 x(loading)S 12 x(this)S 13 x(huge)S 13 x(program.)S 19 x(T)S -3 x(o)S 13 x(optimize)S 13 x(this,)S 13 x(a)S58 y 295 X(stand-alone)S 12 x(program)S 12 x(called)S 12 x F75(llock)S 12 x F44(is)S 11 x(provided)S 12 x(which)S 12 x(is)S 12 x(able)S 12 x(to)S 12 x(perform)S 12 x(the)S 12 x(locking)S 12 x(if)S12 x(the)S 11 x(local)S 12 x(version)S 12 x(is)S 58 y 295 X(the)S 12 x(master)S 13 x(version.)S 20 x(If)S 13 x F75(llock)S 13 x F44(could)S 13 x(perform)S 12 x(the)S 12 x(local)S 12 x(lock,)S 12 x(it)S 12 x(exits)S 12 x(with)S 13 x(exit\261code)S 12 x(0.)S 19 x(If)S 13 x(the)S 12 x(\014le)S 13 x(is)S 13 x(already)S 58 y 295 X(locked)S 15 x(locally)S 15 x(or)S 16 x(an)S 15 x(error)S 15 x(condition)S 15 x(occurred)S 15 x(it)S 15 x(exits)S 16 x(with)S 15 x(exit-code)S 16 x(1.)S 21 x(If)S 16 x(the)S 15 x(local)S 15 x(version)S 15 x(of)S 15 x(the)S 16 x(\014le)S 58 y 295 X(is)S 15 x(not)S 15 x(MASTER,)S 15 x(it)S 15 x(returns)S 15 x(2)S 14 x(which)S15 x(indicates)S 15 x(that)S 15 x(the)S 15 x F75(rfa)S 15 x F44(command)S 15 x(is)S 15 x(needed)S 15 x(to)S 15 x(perform)S 15 x(the)S 15 x(locking.)S 1671 Y 295 X F76(3.6)S 50 x(unlock)S 1807 Y 295 X F44(The)S 15 x F75(unlock)S 15 x F44(command)S 14 x(is)S 14 x(used)S 14 x(to)S 14 x(release)S 14 x(a)S 14 x(lock)S 14 x(for)S 15 x(a)S 14 x(local)S 14 x(MASTER)S 14 x(version)S 15 x(of)S 14 x(the)S 14 x(\014le\(s\))S 14 x(provided)S 14 x(as)S 58 y 295 X(command)S 17 x(ar)S -1 x(gument\(s\).)S 24 x(If)S 17 x(the)S 16 x(name)S 17 x(of)S 16 x(the)S 16 x(\014le)S 16 x(to)S 16 x(be)S 17 x(unlocked)S 17 x(is)S 16 x(a)S 16 x(symbolic)S 16 x(link,)S 16 x(the)S 17 x(\014le)S 16 x(referenced)S 58 y 295 X(by)S 16 x(the)S 15 x(link)S 15 x(is)S 16 x(unlocked)S 16 x(if)S 16 x(it)S 16 x(is)S16 x(located)S 16 x(within)S 16 x(the)S 16 x(shared)S 16 x(subtree.)S22 x(There)S 16 x(is)S 15 x(are)S 16 x(no)S 16 x(checks)S 16 x(made)S15 x(if)S 16 x(the)S 59 y 295 X(\014le)S 17 x(has)S 18 x(been)S 18 x(locked)S 18 x(by)S 17 x(the)S 18 x(user)S 17 x(that)S 17 x(performs)S 18 x(the)S 17 x(unlock)S 17 x(operation.)S 2063 Y 295 X(Similar)S 12 x(to)S 13 x(the)S 12 x F75(llock)S 12 x F44(command)S12 x(there)S 13 x(exists)S 12 x(an)S 12 x F75(lunlock)S 12 x F44(command)S 12 x(which)S 12 x(is)S 13 x(capable)S 12 x(to)S 12 x(perform)S 12 x(the)S 12 x(release)S 58 y 295 X(of)S 17 x(the)S 17 x(\(always\))S 18 x(local)S 17 x(locks)S 17 x(to)S 17 x(avoid)S 17 x(the)S 17 x(expensive)S 17 x(use)S 17 x(of)S 17 x(the)S 17 x F75(rfa)S 17 x F44(command.)S 2357 Y 295 X F76(3.7)S 50 x(master)S 2493 Y 295 X F44(The)S 11 x F75(master)S 11 x F44(command)S 11 x(can)S 11 x(be)S 11 x(used)S 11 x(to)S 11 x(request)S 11 x(that)S 11 x(the)S 12 x(local)S 11 x(version)S 11 x(of)S 11 x(the)S 11 x(\014le\(s\))S 11 x(provided)S 11 x(as)S 11 x(ar)S -1 x(gument\(s\))S58 y 295 X(will)S 17 x(become)S 16 x(the)S 16 x(MASTER)S 16 x(version.)S 23 x(If)S 16 x(the)S 16 x(name)S 16 x(of)S 16 x(the)S 17 x(\014le)S 16 x(is)S 16 x(a)S 16 x(symbolic)S 16 x(link,)S 17 x(the)S 16 x(\014le)S 17 x(referenced)S 16 x(by)S 58 y 295 X(the)S 17 x(link)S 17 x(is)S 17 x(tar)S -1 x(get)S 17 x(of)S 17 x(the)S 17 x(operation)S 17 x(if)S 17 x(it)S 17 x(is)S 17 x(located)S 17 x(within)S 17 x(the)S 17 x(shared)S 17 x(subtree.)S 2690 Y 295 X(If)S16 x(the)S 16 x(local)S 16 x(version)S 15 x(of)S 16 x(the)S 16 x(\014le)S 15 x(is)S 16 x(in)S 16 x(UNREGISTERED)S 16 x(status,)S 16 x(its)S 16 x(status)S 16 x(is)S 16 x(set)S 16 x(to)S 16 x(MASTER)S16 x(if)S 16 x(there)S 16 x(is)S 58 y 295 X(no)S 17 x(version)S 17 x(of)S 17 x(the)S 17 x(\014le)S 17 x(with)S 17 x(MASTER)S 17 x(status)S 17 x(at)S 18 x(the)S 18 x(remote)S 18 x(site.)S 27 x(This)S17 x(is)S 18 x(the)S 18 x(way)S 17 x(how)S 17 x(locally)S 17 x(created)S 59 y 295 X(\014les)S 16 x(will)S 15 x(be)S 15 x(introduced)S 15 x(into)S 15 x(the)S 15 x(set)S 15 x(of)S 15 x(shared)S 16 x(\014les)S 15 x(where)S 15 x(the)S 15 x(creating)S 15 x(site)S 15 x(becomes)S 15 x(the)S 15 x(initial)S 16 x(master.)S2888 Y 295 X(If)S 16 x(the)S 16 x(local)S 16 x(version)S 16 x(of)S17 x(the)S 17 x(\014le)S 17 x(is)S 16 x(in)S 16 x(SLA)S -6 x(VE)S 16 x(status,)S 17 x(then)S 16 x(the)S 16 x(mastership)S 17 x(for)S16 x(the)S 16 x(\014le)S 16 x(is)S 16 x(requested)S 16 x(from)S 58 y 295 X(the)S 13 x(remote)S 13 x(site)S 13 x(similar)S 13 x(to)S 13 x(the)S 13 x F75(lock)S 13 x F44(command.)S 20 x(The)S 13 x(write)S13 x(access)S 13 x(permissions)S 13 x(of)S 13 x(the)S 13 x(new)S 13 x(local)S 13 x(MASTER)S 58 y 295 X(version)S 21 x(are)S 22 x(set.)S 3276 Y 1230 X F6(5)S%%PageTrailer/paper-automatic true SPS 1 PP EP%%PageBoundingBox: 71 53 524 794%%PageBoundingBox: (atend)%%BeginPageSetup1000 BP 3507 2481 PM /paper-automatic false SPS 295 0 XY%%EndPageSetup295 231 XY F8(RF)S -3 x(A)S 295 281 XY 846 3 R 1141 281 XY 200 3 R 1340 281 XY 846 3 R -50 y 1875 X(The)S 25 x(RF)S -3 x(A)S 25 x(Client)S 459 Y 295 X F76(3.8)S 50 x(slave)S 579 Y 295 X F44(The)S 13 x F75(slave)S 13 x F44(command)S 13 x(can)S 13 x(be)S 13 x(used)S 13 x(to)S 13 x(request)S 13 x(that)S 13 x(the)S 13 x(local)S13 x(version)S 13 x(of)S 13 x(the)S 13 x(\014le\(s\))S 13 x(provided)S 13 x(as)S 13 x(ar)S -1 x(gument\(s\))S 58 y 295 X(will)S17 x(become)S 16 x(a)S 16 x(SLA)S -6 x(VE)S 16 x(version.)S 24 x(If)S16 x(the)S 17 x(name)S 16 x(of)S 17 x(the)S 16 x(\014le)S 16 x(is)S16 x(a)S 17 x(symbolic)S 17 x(link,)S 16 x(the)S 17 x(\014le)S 17 x(referenced)S 17 x(by)S 16 x(the)S 58 y 295 X(link)S 18 x(is)S 18 x(tar)S -1 x(get)S 17 x(of)S 18 x(the)S 18 x(operation)S 18 x(if)S 17 x(it)S 18 x(is)S 18 x(located)S 18 x(within)S 17 x(the)S 17 x(shared)S 18 x(subtree.)S 771 Y 295 X(If)S 15 x(the)S 15 x(local)S15 x(version)S 15 x(of)S 16 x(the)S 16 x(\014le)S 15 x(is)S 15 x(in)S16 x(UNREGISTERED)S 15 x(or)S 15 x(MASTER)S 15 x(status,)S 15 x(its)S15 x(status)S 16 x(is)S 15 x(set)S 15 x(to)S 15 x(SLA)S -6 x(VE)S 58 y 295 X(if)S 17 x(there)S 17 x(is)S 17 x(version)S 16 x(of)S 17 x(the)S 17 x(\014le)S 17 x(with)S 17 x(MASTER)S 17 x(status)S 17 x(at)S 17 x(the)S 17 x(remote)S 16 x(site.)S 25 x(The)S 17 x(write)S16 x(access)S 17 x(permissions)S 58 y 295 X(of)S 20 x(the)S 20 x(new)S 19 x(local)S 19 x(SLA)S -6 x(VE)S 19 x(version)S 20 x(are)S20 x(cleared.)S 1082 Y 295 X F76(3.9)S 50 x(unr)S -1 x(egister)S 1201 Y 295 X F44(The)S 22 x F75(unr)S -2 x(egister)S 23 x F44(command)S 21 x(can)S 21 x(be)S 21 x(used)S 22 x(to)S 22 x(request)S21 x(that)S 22 x(the)S 22 x(local)S 21 x(version)S 22 x(of)S 21 x(the)S 22 x(\014le\(s\))S 22 x(provided)S 22 x(as)S 59 y 295 X(ar)S-1 x(gument\(s\))S 15 x(will)S 15 x(become)S 15 x(an)S 15 x(UNREGISTERED)S 15 x(version.)S 20 x(If)S 15 x(the)S 15 x(local)S 15 x(version)S 15 x(of)S 15 x(the)S 15 x(\014le)S 15 x(is)S 15 x(locked,)S 15 x(this)S 58 y 295 X(results)S 16 x(in)S 16 x(an)S 16 x(error.)S 22 x(If)S 16 x(the)S 15 x(name)S 16 x(of)S 16 x(the)S 16 x(\014le)S 16 x(is)S 16 x(a)S 16 x(symbolic)S 16 x(link,)S 16 x(the)S16 x(\014le)S 16 x(referenced)S 16 x(by)S 16 x(the)S 16 x(link)S 16 x(is)S 16 x(tar)S -1 x(get)S 58 y 295 X(of)S 19 x(the)S 18 x(operation)S 19 x(if)S 18 x(it)S 19 x(is)S 19 x(located)S 18 x(within)S 18 x(the)S 18 x(shared)S 19 x(subtree.)S 1571 Y 295 X F76(3.10)S 50 x(setr)S -1 x(equest)S 1690 Y 295 X F44(The)S 17 x F75(setr)S -2 x(equest)S 16 x F44(command)S 16 x(is)S 17 x(used)S 17 x(to)S 17 x(set)S 17 x(the)S 16 x(transfer)S 17 x(mode)S 17 x(of)S 16 x(the)S 16 x(local)S 16 x(version)S 16 x(of)S 17 x(the)S 17 x(\014le\(s\))S 17 x(provided)S 59 y 295 X(as)S 16 x(ar)S -1 x(gument\(s\))S 16 x(to)S 16 x(REQUEST)S 16 x(mode.)S 21 x(If)S 15 x(the)S 16 x(name)S 15 x(of)S 16 x(the)S 15 x(\014le)S 15 x(is)S 15 x(a)S 15 x(symbolic)S 15 x(link,)S 16 x(the)S 16 x(\014le)S 16 x(referenced)S 15 x(by)S 58 y 295 X(the)S 17 x(link)S 17 x(is)S 17 x(tar)S -1 x(get)S 17 x(of)S 17 x(the)S 17 x(operation)S 17 x(if)S 17 x(it)S 17 x(is)S 17 x(located)S 17 x(within)S 17 x(the)S 17 x(shared)S 17 x(subtree.)S 2002 Y 295 X F76(3.11)S 50 x(setauto)S 2121 Y 295 X F44(The)S 16 x F75(setauto)S 17 x F44(command)S 16 x(is)S 17 x(used)S 17 x(to)S 16 x(set)S 16 x(the)S 16 x(transfer)S 16 x(mode)S 17 x(of)S 16 x(the)S 16 x(local)S 16 x(version)S 16 x(of)S 17 x(the)S 16 x(\014le\(s\))S 16 x(provided)S 16 x(as)S 58 y 295 X(ar)S -1 x(gument\(s\))S 15 x(to)S 15 x(AUT)S -1 x(OMA)S -5 x(TIC)S 14 x(mode.)S 20 x(If)S 15 x(the)S 15 x(name)S 15 x(of)S 15 x(the)S 15 x(\014le)S 15 x(is)S 15 x(a)S 15 x(symbolic)S 15 x(link,)S15 x(the)S 15 x(\014le)S 16 x(referenced)S 15 x(by)S 58 y 295 X(the)S17 x(link)S 17 x(is)S 17 x(tar)S -1 x(get)S 17 x(of)S 17 x(the)S 17 x(operation)S 17 x(if)S 17 x(it)S 17 x(is)S 17 x(located)S 17 x(within)S 17 x(the)S 17 x(shared)S 17 x(subtree.)S 2432 Y 295 X F76(3.12)S 50 x(get\014le)S 2552 Y 295 X F44(The)S 17 x F75(get\014le)S17 x F44(command)S 16 x(is)S 17 x(used)S 17 x(to)S 17 x(request)S 16 x(the)S 16 x(transfer)S 17 x(of)S 16 x(the)S 16 x(shared)S 16 x(\014le\(s\))S 17 x(provided)S 16 x(as)S 17 x(ar)S -1 x(gument\(s\).)S 24 x(If)S 58 y 295 X(the)S 17 x(name)S 16 x(of)S 17 x(the)S 16 x(\014le)S 16 x(is)S 16 x(a)S 16 x(symbolic)S 16 x(link,)S 17 x(the)S 16 x(\014le)S 16 x(referenced)S 17 x(by)S 17 x(the)S 16 x(link)S 17 x(is)S 17 x(tar)S -1 x(get)S 17 x(of)S 17 x(the)S 17 x(operation)S 17 x(if)S 17 x(it)S 58 y 295 X(is)S 20 x(located)S 20 x(within)S 20 x(the)S 20 x(shared)S 20 x(subtree.)S 2744 Y 295 X(If)S 12 x(the)S 13 x(remote)S 13 x(version)S 13 x(of)S12 x(the)S 13 x(\014le)S 12 x(is)S 12 x(in)S 12 x(MASTER)S 12 x(status,)S 13 x(a)S 12 x(local)S 13 x(SLA)S -6 x(VE)S 13 x(version)S12 x(is)S 12 x(created)S 13 x(if)S 12 x(the)S 12 x(\014le)S 12 x(does)S 58 y 295 X(locally)S 17 x(not)S 18 x(exist.)S 27 x(If)S 18 x(a)S 17 x(local)S 18 x(SLA)S -6 x(VE)S 17 x(version)S 17 x(already)S18 x(exists,)S 18 x(it)S 18 x(is)S 17 x(updated)S 17 x(from)S 18 x(the)S 18 x(remote)S 18 x(MASTER)S 58 y 295 X(version.)S 2936 Y 295 X(If)S 15 x(the)S 16 x(remote)S 15 x(version)S 16 x(of)S 15 x(the)S 16 x(\014le)S 16 x(is)S 16 x(in)S 15 x(UNREGISTERED)S 16 x(status,)S 16 x(a)S 16 x(local)S 16 x(version)S 16 x(of)S 16 x(the)S16 x(\014le)S 16 x(with)S 16 x(status)S 58 y 295 X(UNREGISTERED)S 17 x(is)S 17 x(created)S 17 x(if)S 17 x(the)S 17 x(\014le)S 17 x(does)S 17 x(locally)S 17 x(not)S 17 x(exist.)S 25 x(If)S 17 x(a)S17 x(local)S 17 x(version)S 17 x(already)S 16 x(exists,)S 17 x(it)S17 x(is)S 58 y 295 X(updated)S 20 x(from)S 20 x(the)S 20 x(remote)S20 x(version.)S 3276 Y 1230 X F6(6)S%%PageTrailer/paper-automatic true SPS 1 PP EP%%PageBoundingBox: 71 53 524 794%%PageBoundingBox: (atend)%%BeginPageSetup1000 BP 3507 2481 PM /paper-automatic false SPS 295 0 XY%%EndPageSetup295 231 XY F8(RF)S -3 x(A)S 295 281 XY 846 3 R 1141 281 XY 200 3 R 1340 281 XY 846 3 R -50 y 1874 X(The)S 25 x(RF)S -3 x(A)S 26 x(Client)S 459 Y 295 X F44(The)S 14 x(transfer)S 13 x(of)S 14 x(the)S 13 x(\014le)S 14 x(is)S 13 x(performed)S 13 x(according)S 13 x(the)S 13 x(version-time)S 14 x(\(time)S 13 x(of)S 14 x(last)S13 x(modi\014cation\))S 14 x(of)S 13 x(the)S 13 x(local)S 58 y 295 X(and)S 18 x(remote)S 18 x(\014les.)S 28 x(If)S 18 x(both)S 18 x(the)S18 x(version-times)S 18 x(of)S 18 x(both)S 18 x(\014les)S 18 x(are)S18 x(equal,)S 18 x(no)S 18 x(transfer)S 18 x(has)S 18 x(to)S 18 x(be)S 18 x(performed)S 58 y 295 X(because)S 13 x(the)S 13 x(SLA)S -6 x(VE)S 13 x(version)S 14 x(is)S 13 x(already)S 14 x(up-to-date.)S19 x(If)S 13 x(the)S 13 x(version-time)S 14 x(of)S 13 x(the)S 14 x(remote)S 13 x(MASTER)S 13 x(is)S 13 x(older)S 58 y 295 X(that)S 16 x(the)S 16 x(version-time)S 16 x(of)S 17 x(the)S 16 x(local)S 16 x(SLA)S -6 x(VE)S 17 x(\(or)S 16 x(UNREGISTERED\))S 17 x(version,)S 16 x(an)S 17 x(inconsistency)S 17 x(has)S 17 x(been)S 59 y 295 X(detected)S 18 x(and)S 17 x(an)S 17 x(error)S 17 x(is)S 18 x(reported.)S 27 x(Otherwise,)S 17 x(the)S 17 x(content)S 17 x(of)S 17 x(the)S 17 x(\014le)S 17 x(has)S 17 x(to)S 18 x(be)S 17 x(transmitted)S 18 x(to)S 17 x(update)S 58 y 295 X(the)S 18 x(local)S18 x(SLA)S -6 x(VE)S 18 x(\(or)S 18 x(UNREGISTERED\))S 19 x(version)S18 x(of)S 19 x(the)S 19 x(\014le.)S 831 Y 295 X(The)S 16 x(content)S16 x(of)S 16 x(the)S 15 x(\014le)S 15 x(can)S 15 x(be)S 16 x(transferred)S 15 x(either)S 16 x(in)S 15 x(uncompressed)S 16 x(or)S16 x(in)S 16 x(compressed)S 15 x(mode,)S 16 x(depending)S 59 y 295 X(on)S 17 x(the)S 16 x(size)S 17 x(of)S 17 x(the)S 16 x(\014le.)S 25 x(The)S 17 x(size)S 17 x(limit)S 17 x(when)S 16 x(compression)S17 x(shall)S 17 x(occur)S 17 x(can)S 16 x(be)S 17 x(con\014gured)S17 x(as)S 17 x(described)S 58 y 295 X(in)S 22 x(chapter)S 22 x(5.)S42 x(The)S 23 x(compression)S 22 x(and)S 23 x(decompression)S 22 x(is)S 22 x(done)S 23 x(using)S 22 x(the)S 23 x(UNIX)S -17 y F74(TM)S17 y 24 x F75(compr)S -2 x(ess\(1\))S 23 x F44(and)S 58 y 295 X F75(uncompr)S -2 x(ess\(1\))S 21 x F44(commands.)S 1088 Y 295 X(Optionally,)S 16 x(the)S 16 x(old)S 16 x(version)S 16 x(of)S 16 x(the)S 16 x(local)S 15 x(\014le)S 16 x(will)S 15 x(be)S 15 x(saved)S16 x(in)S 16 x(as)S 16 x(a)S 16 x(\014le)S 16 x(with)S 16 x(the)S 16 x(suf)S -1 x(\014x)S 17 x F75(.bak)S 16 x F44(if)S 16 x(the)S 16 x(local)S 58 y 295 X(\014le)S 17 x(is)S 18 x(updated.)S 26 x(This)S 18 x(option)S 18 x(can)S 17 x(be)S 18 x(con\014gured)S 17 x(as)S 17 x(described)S 18 x(in)S 18 x(chapter)S 17 x(5.)S 1385 Y 295 X F76(3.13)S 50 x(syncdir)S 1523 Y 295 X F44(The)S 13 x F75(syncdir)S 13 x F44(command)S 13 x(is)S 13 x(used)S 13 x(to)S 13 x(synchronize)S 13 x(the)S 13 x(\014les)S 13 x(within)S 13 x(the)S 13 x(directory/ies)S 13 x(provided)S 13 x(as)S 13 x(ar)S -1 x(gument\(s\))S 58 y 295 X(with)S 12 x(their)S 12 x(counterparts)S 12 x(at)S 12 x(the)S 12 x(remote)S 12 x(site.)S 19 x(Here)S 12 x(the)S 11 x(basic)S 12 x(principle)S 11 x(is,)S 13 x(that)S 12 x(the)S 12 x(site)S 12 x(executing)S 12 x(the)S 12 x F75(syncdir)S 58 y 295 X F44(command)S 14 x(is)S 13 x(only)S 14 x(synchronizing)S14 x(the)S 14 x(local)S 14 x(site)S 14 x(by)S 14 x(applying)S 14 x(the)S 13 x(following)S 14 x(actions)S 14 x(to)S 14 x(the)S 13 x(list)S 14 x(of)S 14 x(\014les)S 14 x(that)S 58 y 295 X(exists)S 19 x(at)S 19 x(the)S 19 x F49(r)S -1 x(emote)S 18 x F44(site)S 19 x(within)S 19 x(the)S 19 x(given)S 19 x(directory:)S 1804 Y 378 X(\267)S 67 x(Create)S 17 x(a)S 17 x(local)S 17 x(SLA)S -6 x(VE)S 18 x(\014le)S 16 x(versions)S 17 x(for)S 17 x(newly)S 17 x(found)S16 x(remote)S 17 x(MASTER)S 17 x(version)S 17 x(\014le.)S 26 x(This)S17 x(is)S 58 y 461 X(done)S 18 x(according)S 18 x(to)S 18 x(the)S 18 x(transfer)S 18 x(mode)S 18 x(of)S 18 x(the)S 18 x(\014le.)S 28 x(If)S 18 x(the)S 18 x(transfer)S 18 x(mode)S 18 x(is)S 18 x(set)S 18 x(to)S 18 x(REQUEST,)S 58 y 461 X(only)S 14 x(a)S 14 x(dummy)S 14 x(SLA)S -6 x(VE)S 14 x(version)S 14 x(of)S 14 x(\014le)S 15 x(is)S14 x(created)S 14 x(which)S 14 x(indicates)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?