From: Enrico Scholz Date: Mon, 19 Jan 2004 18:19:45 +0000 (+0000) Subject: cleanups; moved structure declarations from vunify.c into this headerfile X-Git-Tag: VERSION_0_10~884 X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c49730f3251c3f4cf721f8a9faf4bfb5ab61e23;p=util-vserver.git cleanups; moved structure declarations from vunify.c into this headerfile git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@645 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- diff --git a/util-vserver/src/vunify.h b/util-vserver/src/vunify.h index 3a404df..b3186e5 100644 --- a/util-vserver/src/vunify.h +++ b/util-vserver/src/vunify.h @@ -24,14 +24,34 @@ struct dirent; struct WalkdownInfo { - PathInfo state; - struct MatchList dst_list; + PathInfo state; + struct MatchList dst_list; struct { - struct MatchList * v; - size_t l; - } src_lists; + struct MatchList * v; + size_t l; + } src_lists; }; +struct SkipReason { + enum { rsDOTFILE, rsEXCL_DST, rsEXCL_SRC, + rsFSTAT, rsNOEXISTS, rsSYMLINK, rsUNIFIED, + rsDIFFERENT } r; + + union { + struct MatchList const * list; + } d; +}; + +struct Arguments { + enum {mdMANUALLY, mdVSERVER} mode; + bool do_revert; + bool do_dry_run; + unsigned int verbosity; + bool local_fs; + bool do_renew; +}; + + static void visitDirEntry(struct dirent const *) NONNULL((1)); static void visitDir(char const *, struct stat const *) NONNULL((1)); static bool checkFstat(struct MatchList const * const,