X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=frontend.ml;h=39467369ab385c5ad57ab7e42ab0078d6d27e3b2;hb=3e196889a4a0b7b8cc213d49f2714fc64839cbed;hp=aca8e7b65ff0941588824c857175b50f613c634a;hpb=8ed94d4c37a320acc03f1f3f6523201b42202f00;p=vsys.git diff --git a/frontend.ml b/frontend.ml index aca8e7b..3946736 100644 --- a/frontend.ml +++ b/frontend.ml @@ -21,7 +21,7 @@ object(this) let realperm = perm land (lnot 0o111) in match rp with Relpath(rel) -> let fqp = String.concat "/" [root_dir;rel] in - let res = Fifowatcher.mkentry fqp abspath realperm in + let res = Fifowatcher.mkentry fqp abspath realperm slice_name in match res with | Success -> Fifowatcher.openentry fqp (abspath,slice_name) realperm @@ -41,8 +41,8 @@ object(this) end else if (s.st_perm <> perm) then begin - printf "Removing directory %s\n" fqp; - flush Pervasives.stdout; + fprintf logfd "Removing directory %s\n" fqp; + flush logfd; Unix.rmdir fqp; Unix.mkdir fqp perm end @@ -60,7 +60,7 @@ object(this) Unix.unlink fqp1; Unix.unlink fqp2 with _ -> - printf "Hm. %s disappeared. Looks like slice %s shot itself in the foot\n" fqp1 (this#get_slice_name ());flush Pervasives.stdout + fprintf logfd "Hm. %s disappeared. Looks like slice %s shot itself in the foot\n" fqp1 (this#get_slice_name ());flush logfd method rmdir rp = match rp with Relpath(rel) -> @@ -68,5 +68,5 @@ object(this) try Unix.rmdir fqp with _ -> - printf "Hm. %s disappeared. Looks like slice %s shot itself in the foot\n" fqp (this#get_slice_name ());flush Pervasives.stdout + fprintf logfd "Hm. %s disappeared. Looks like slice %s shot itself in the foot\n" fqp (this#get_slice_name ());flush logfd end