Skip to content

Documentation

Jessica Winssinger edited this page Apr 18, 2018 · 5 revisions

Key Terms

Snapfile

A snapfile is just the name of a given file that you hope to version.

Structs

SuperSdir (Super Snapshot Directory)

A given project's metadata. (Equivalent to a superblock in other file systems.) A SuperSdir stores

   char* fname;    	 //< Name of snapfile
   size_t scount;	 //< # of snapshots (versions)
   char* curr_snap;	 //< Current working snapshot
   uint64_t curr_fh; //< Current snapshot file handle

Sdir

A directory that stores a given version in the project tree. A Sdir stores

        char* snap_num;   //< Snapshot (version) number
	uint64_t sfh; 	  //< File handle of snapfile
	mode_t smode;	  //< Mode for snapfile
	size_t ssize;	  //< Size of snapfile
	size_t size;	  //< ssize + size of subtree
	size_t entry_cnt; //< # of entries in the Sdir

Clone this wiki locally