jarrpa/prequel.git
9 years agoGstr, PD_utils: Updated comments. master
Christopher R. Hertel [Tue, 30 Sep 2014 02:55:21 +0000 (21:55 -0500)]
Gstr, PD_utils: Updated comments.

9 years agoPrequelD.c: A series of small clean-up fixes.
Christopher R. Hertel [Mon, 22 Sep 2014 23:49:59 +0000 (18:49 -0500)]
PrequelD.c: A series of small clean-up fixes.

These are changes that were being kept in a separate branch and really
did need to be merged (just to get them out of the way).

9 years agoPrequelD.c: Moved code that belongs elsewhere.
Christopher R. Hertel [Mon, 22 Sep 2014 22:14:11 +0000 (17:14 -0500)]
PrequelD.c:  Moved code that belongs elsewhere.
  * Many comment cleanups.

9 years agosrc/daemon/0.README: Renamed file; Improved text.
Christopher R. Hertel [Mon, 22 Sep 2014 20:42:04 +0000 (15:42 -0500)]
src/daemon/0.README:  Renamed file; Improved text.

Updated the content.

9 years ago0.README.txt: Renamed again. Sigh.
Christopher R. Hertel [Mon, 22 Sep 2014 20:18:49 +0000 (15:18 -0500)]
0.README.txt: Renamed again.  Sigh.

Other projects in my purview use the name "0.README", not
"0.README.txt".

9 years agoREADME.txt: Renamed so that it's the first thing in the directory.
Christopher R. Hertel [Mon, 22 Sep 2014 20:15:31 +0000 (15:15 -0500)]
README.txt:  Renamed so that it's the first thing in the directory.

9 years agoscripts: New versions of git_keywords.py and git_utils.py
Christopher R. Hertel [Mon, 22 Sep 2014 20:12:02 +0000 (15:12 -0500)]
scripts:  New versions of git_keywords.py and git_utils.py

Updated two scripts to match the work done for the Carnaval project.
These two could still use a heaping handful of cleanup.

9 years agoREADME.txt: Small Cleanups.
Christopher R. Hertel [Mon, 22 Sep 2014 20:10:32 +0000 (15:10 -0500)]
README.txt: Small Cleanups.
  * Corrected the name of a Microsoft document.
  * Fixed a spelling error.
  * Added a replacable variable that will show the commit date upon commit.

9 years ago.gitignore: Ignore compiled python scripts.
Christopher R. Hertel [Mon, 22 Sep 2014 20:01:56 +0000 (15:01 -0500)]
.gitignore: Ignore compiled python scripts.

9 years agoEnable keyword substitution for 0.README.
Christopher R. Hertel [Mon, 22 Sep 2014 19:27:42 +0000 (14:27 -0500)]
Enable keyword substitution for 0.README.

Added a line to enable keyword substitution for the 0.README file we
plan to write.

10 years agoRedesigned the communications between the client and server to simplify
crh [Wed, 12 Jun 2013 18:34:10 +0000 (13:34 -0500)]
Redesigned the communications between the client and server to simplify
parsing and allow for easier extensions and future updates.

10 years agoRestructured the pd_v1ShouldHash() function to make it a little cleaner.
crh [Wed, 12 Jun 2013 17:51:03 +0000 (12:51 -0500)]
Restructured the pd_v1ShouldHash() function to make it a little cleaner.

11 years agoTimestamp, again.
crh [Mon, 29 Apr 2013 20:40:33 +0000 (15:40 -0500)]
Timestamp, again.

11 years agoVarious small changes:
crh [Mon, 29 Apr 2013 20:27:46 +0000 (15:27 -0500)]
Various small changes:
  * Updated some comments.
  * Added the <vMinor> parameter to the QueryPath() function.
  * Added a FIX note to the QueryPath() function.

11 years agoAdded a datestamp to the file, so that readers can guestimate how
crh [Mon, 29 Apr 2013 20:25:39 +0000 (15:25 -0500)]
Added a datestamp to the file, so that readers can guestimate how
up-to-date the README is.

11 years agoUpdating tags.
crh [Wed, 23 Jan 2013 04:57:46 +0000 (22:57 -0600)]
Updating tags.

11 years agoCreated the new client directory and placed PDclient.c into it.
crh [Wed, 23 Jan 2013 04:53:04 +0000 (22:53 -0600)]
Created the new client directory and placed PDclient.c into it.
PDclient.c is a test program and simple example PrequelD client.

11 years agoFixing a utility script.
Jose A. Rivera [Wed, 23 Jan 2013 04:49:57 +0000 (22:49 -0600)]
Fixing a utility script.

11 years agoTimestamp update problem. Again.
crh [Fri, 5 Oct 2012 22:19:08 +0000 (17:19 -0500)]
Timestamp update problem.  Again.

11 years agoUpdated the handling of queries so that the maximum PeerDist version can be
crh [Fri, 5 Oct 2012 22:15:18 +0000 (17:15 -0500)]
Updated the handling of queries so that the maximum PeerDist version can be
specified.

11 years agoAdded some FIX comments.
crh [Thu, 20 Sep 2012 17:19:52 +0000 (12:19 -0500)]
Added some FIX comments.

11 years agoFixed a minor typo that caused values to be assigned to the wrong place.
crh [Thu, 20 Sep 2012 00:54:50 +0000 (19:54 -0500)]
Fixed a minor typo that caused values to be assigned to the wrong place.

11 years agoDang update script is still changing dates at after the commit and not before.
crh [Tue, 18 Sep 2012 22:02:05 +0000 (17:02 -0500)]
Dang update script is still changing dates at after the commit and not before.

11 years ago== PrequelD.c ==
crh [Tue, 18 Sep 2012 22:00:26 +0000 (17:00 -0500)]
== PrequelD.c ==
 * Updated some log messages.

== PD_peerdist1.c ==
 * Removed a chunk of code used to open a Hash Cache file and load metadata.  That functionality is not used in this module or the modules called by it.
   * Wrote code to cover the minimal amount of stuff we actually do need to test whether a cache file is up-to-date.
 * Re-ordered the exported functions.

11 years agoUpdating the ID.
crh [Tue, 18 Sep 2012 19:01:19 +0000 (14:01 -0500)]
Updating the ID.

11 years ago== PrequelD.c ==
crh [Tue, 18 Sep 2012 18:33:22 +0000 (13:33 -0500)]
== PrequelD.c ==
 * Added support for a "Query" command so that we can ask the server to map a source file pathname to a cache file pathname.
   * Moved handling of the "Queue" command to its own function.
 * Restructured the logic in the Responder() function.
 * Added additional log messages.
 * Changed the call to the pd_v1ShouldHash() function to match changes in PD_peerdist1.

== PD_peerdist1.c ==
 * Removed a function that I had planned on using, but which I did not wind up using.
 * Added code to change the ownership and mode of the cache file after the file is created.  The file permissions should match those of the source file.
 * Updated the pd_v1ShouldHash() function.  We're not going to try every esoteric test to determine whether the cache is correct.  If the user changes the configuration (changes the hash type, changes the signing key) the user can delete the cache files.
 * Added the pd_v1GenCacheName() function.

== PD_peerdist1.h ==
 * Changed to match the .c file.

11 years agoSmall change to a const declaration which seems to have a positive effect on the...
Christopher R. Hertel [Tue, 18 Sep 2012 03:59:53 +0000 (22:59 -0500)]
Small change to a const declaration which seems to have a positive effect on the handling of the result.

11 years ago* Added a function I plan on using later.
crh [Fri, 14 Sep 2012 21:04:42 +0000 (16:04 -0500)]
* Added a function I plan on using later.
* I did not make the PrequelD header changes that I had intended.  The design needs some thought.

11 years agoAdded comments to explain some slightly odd code and the compiler bug that makes...
crh [Fri, 14 Sep 2012 18:08:41 +0000 (13:08 -0500)]
Added comments to explain some slightly odd code and the compiler bug that makes it necessary to use the slightly odd code.

11 years ago== New Tool ==
crh [Fri, 14 Sep 2012 18:05:50 +0000 (13:05 -0500)]
== New Tool ==
 * SHA256oSSL.c is a simple tool that generates SHA256 hashes from input.  The output is in raw binary format, not a hexidecimal string.

11 years agoTrying to get things synced up.
crh [Fri, 14 Sep 2012 16:21:19 +0000 (11:21 -0500)]
Trying to get things synced up.

11 years ago== Bugfixes and Updates ==
crh [Fri, 14 Sep 2012 16:10:14 +0000 (11:10 -0500)]
== Bugfixes and Updates ==
 * PrequelD
   * Cleaned up the use of Verbosity levels.
   * Improved log messages.
   * Added support for the new pd_v1ShouldHash() function.  See below.
 * PD_peerdist1
   * Fixed bugs in readCacheHdr()
     * The code was reading input using fgets(), which will not read
       binary data correctly at all.  Changed calls from fgets() to
       fread().
   * Added the pd_FreshCache error code, because in some cases having an up-to-date cache file is a valid reason to return an error.
   * Added the pd_v1ShouldHash() function.
     * Tests weather or not a given source file should be hashed.
     * Returns an error code if the source file cannot be opened or is too small to be hashed.
     * Returns an error code if the cache file exists and is up to date.

11 years ago * Fixed a strange bug that seems to have been caused by a problem with the order...
crh [Fri, 14 Sep 2012 15:45:38 +0000 (10:45 -0500)]
 * Fixed a strange bug that seems to have been caused by a problem with the order in which parameters are evaluated when calling a function with a variable length parameter list.  It may be specific to the use of the __VA_ARGS__ macro.

{{{
  Say( "%d.%d\n", fgetc( infile ), fgetc( infile ) );
}}}

 * If the input bytes are 0x01, 0x02, in that order, the above code will magically print them as 2.1.  That's reverse order.  The fix is simple:

{{{
  c = fgetc( infile );
  Say( "%d.%d\n", c, fgetc( infile ) );
}}}

The problem occurred on more than one Linux platform.

11 years agoMerge branch 'master' of ssh://git.fedorahosted.org/git/prequel
crh [Thu, 13 Sep 2012 14:44:15 +0000 (09:44 -0500)]
Merge branch 'master' of ssh://git.fedorahosted.org/git/prequel

11 years ago * Fixed a minor typo.
crh [Wed, 12 Sep 2012 23:09:05 +0000 (18:09 -0500)]
 * Fixed a minor typo.

11 years agoRe-ordered some logic.
crh [Wed, 12 Sep 2012 23:07:45 +0000 (18:07 -0500)]
Re-ordered some logic.

11 years ago * Changed the compile command example in the PrequelD.c comments to include the...
crh [Wed, 12 Sep 2012 22:37:39 +0000 (17:37 -0500)]
 * Changed the compile command example in the PrequelD.c comments to include the flags needed to force 64-bit file offsets on 32-bit OSes.
 * Removed a blank line in PD_utils.c

11 years agoBugfix:
crh [Wed, 12 Sep 2012 22:16:44 +0000 (17:16 -0500)]
Bugfix:
  * The segment offset was not being incremented properly, so all of the Segment Descriptions were being written on top of one another in the position reserved for the first Segment Description.  Fixed.

Minor:
  * Small code fiddlements.

11 years agoUpdated the Readme files to match current design and implementation.
crh [Wed, 12 Sep 2012 05:30:11 +0000 (00:30 -0500)]
Updated the Readme files to match current design and implementation.

11 years agoPD_utils.c
crh [Sun, 9 Sep 2012 04:20:22 +0000 (23:20 -0500)]
PD_utils.c
  Flush output after each log line to ensure that log messages actually
  make it to the log file.  This is probably better than disabling
  buffering since we are forcing output of a line at a time instead of a
  character at a time.

PrequelD.c
  Redesign of the operation of the daemon.  In the new design, the only
  request you can make of the daemon is a queue request.  Source files
  that are queued have priority over any background thread that is
  traversing source directories.

11 years agoUpdates to the Readme.txt file.
crh [Sun, 9 Sep 2012 04:19:06 +0000 (23:19 -0500)]
Updates to the Readme.txt file.

This file needs review, as it is probably not correct due to a redesign
of the Prequel Daemon.

11 years agoChanged a function name in PD_sha2.oSSL to conform with convention.
crh [Thu, 12 Jul 2012 21:24:30 +0000 (16:24 -0500)]
Changed a function name in PD_sha2.oSSL to conform with convention.

11 years agoSmall change to a comment.
crh [Thu, 12 Jul 2012 20:28:30 +0000 (15:28 -0500)]
Small change to a comment.

11 years agoAdded the vLog() function as a catch-all for logging.
crh [Wed, 20 Jun 2012 16:57:31 +0000 (11:57 -0500)]
Added the vLog() function as a catch-all for logging.
 * Adding vLog() made it easy to create the LockLog() function t PrequelD.c.  Originally, LockLog() was a macro, but there were problems using it as such.
 * Rewrote Log() and LogX() to use vLog(); removed some redundancy in the code.

11 years agoSmall updates.
crh [Wed, 20 Jun 2012 16:54:16 +0000 (11:54 -0500)]
Small updates.

11 years agoBugfixes and additional comments.
crh [Wed, 20 Jun 2012 16:45:36 +0000 (11:45 -0500)]
Bugfixes and additional comments.
 * Fixed a crashbug in printGstr().
   * The local Gstr used in printGstr() to compose the output was not being initialized.
   * Added additional checks to make sure faied Gstr initializations are caught.
 * Added another test to isemptyGstr().
   * Checking the Gstr.len in addition to .bufr and .bufr[0].
   * Added comments.

11 years agoAdded to the repository.
crh [Wed, 13 Jun 2012 02:46:10 +0000 (21:46 -0500)]
Added to the repository.
  * The Gstr module makes it easy to build strings in chunks without worrying too much about how much space is available in the string buffer.  Gstr takes care of extending the buffer if needed.

11 years agoUpdated the Readme.txt file, completing several sections that were missing.
crh [Wed, 13 Jun 2012 02:44:48 +0000 (21:44 -0500)]
Updated the Readme.txt file, completing several sections that were missing.
 * Minor change to the wording in preqeld.conf.

11 years agoModified the license section to indicate that the file is part of the PrequelD progra...
crh [Wed, 13 Jun 2012 02:40:25 +0000 (21:40 -0500)]
Modified the license section to indicate that the file is part of the PrequelD program, as per the instructions for using the license.
 * PD_read_config.c  -  changed the default location of the signing key file.

11 years agoMinor changes.
crh [Wed, 6 Jun 2012 23:03:23 +0000 (18:03 -0500)]
Minor changes.
 * Restructured how -V output is provided.
 * Exit after providing version number.
 * Fixed a small logic bug.
 * Tested for simple correctness.

11 years agoMerge branch 'master' into daemon
crh [Wed, 6 Jun 2012 22:50:57 +0000 (17:50 -0500)]
Merge branch 'master' into daemon

11 years agoCommitting Prequel release 1.1. daemon-client 1.1-master
Jose A. Rivera [Wed, 6 Jun 2012 22:01:31 +0000 (17:01 -0500)]
Committing Prequel release 1.1.

11 years agoBug fixes to git_utils.git() and release script.
Jose A. Rivera [Wed, 6 Jun 2012 22:01:21 +0000 (17:01 -0500)]
Bug fixes to git_utils.git() and release script.

11 years agoBug fixes to release script.
Jose A. Rivera [Wed, 6 Jun 2012 21:48:03 +0000 (16:48 -0500)]
Bug fixes to release script.

11 years agoBug fixes to release script.
Jose A. Rivera [Wed, 6 Jun 2012 21:43:56 +0000 (16:43 -0500)]
Bug fixes to release script.

11 years agoBug fixes to release script.
Jose A. Rivera [Wed, 6 Jun 2012 21:38:30 +0000 (16:38 -0500)]
Bug fixes to release script.

11 years agoBug fixes to git_utils.git().
Jose A. Rivera [Wed, 6 Jun 2012 21:36:49 +0000 (16:36 -0500)]
Bug fixes to git_utils.git().

11 years agoBug fixes in release script.
Jose A. Rivera [Wed, 6 Jun 2012 20:51:41 +0000 (15:51 -0500)]
Bug fixes in release script.

11 years agoBug fixes in release script.
Jose A. Rivera [Wed, 6 Jun 2012 20:48:59 +0000 (15:48 -0500)]
Bug fixes in release script.

11 years agoBug fixes in release script and release config file.
Jose A. Rivera [Wed, 6 Jun 2012 20:15:55 +0000 (15:15 -0500)]
Bug fixes in release script and release config file.

11 years agoUpdating pq_cgi to have proper version information.
Jose A. Rivera [Wed, 6 Jun 2012 19:06:11 +0000 (14:06 -0500)]
Updating pq_cgi to have proper version information.

11 years agoMerge branch 'daemon' of ssh://gorch/~crh/work/code/Prequel-git into daemon
crh [Wed, 6 Jun 2012 17:24:10 +0000 (12:24 -0500)]
Merge branch 'daemon' of ssh://gorch/~crh/work/code/Prequel-git into daemon

11 years agoUpdating keywords and header formatting for python scripts.
Jose A. Rivera [Wed, 6 Jun 2012 17:04:03 +0000 (12:04 -0500)]
Updating keywords and header formatting for python scripts.

11 years agoCleaning up master branch, creating release configuration file.
Jose A. Rivera [Wed, 6 Jun 2012 16:03:53 +0000 (11:03 -0500)]
Cleaning up master branch, creating release configuration file.

11 years agoFurther testing release script.
Jose A. Rivera [Wed, 6 Jun 2012 05:44:37 +0000 (00:44 -0500)]
Further testing release script.

11 years agoInitial commit.
crh [Wed, 6 Jun 2012 02:40:38 +0000 (21:40 -0500)]
Initial commit.
 * PrequelD does not actually do anything yet.  It is missing the ability to parse incomming requests and respond to them.
 * The framework is all there, however.

11 years agoFound a typo.
crh [Wed, 6 Jun 2012 02:39:14 +0000 (21:39 -0500)]
Found a typo.
 * Added a missing semicolon.

11 years agoCommitting Test Release 1.3.
Jose A. Rivera [Tue, 5 Jun 2012 22:56:09 +0000 (17:56 -0500)]
Committing Test Release 1.3.

11 years agoBug fixes in release script.
Jose A. Rivera [Tue, 5 Jun 2012 22:56:06 +0000 (17:56 -0500)]
Bug fixes in release script.

11 years agoBug fixes in release script.
Jose A. Rivera [Tue, 5 Jun 2012 22:51:28 +0000 (17:51 -0500)]
Bug fixes in release script.

11 years agoCommitting Test Release 1.3.
Jose A. Rivera [Tue, 5 Jun 2012 22:48:52 +0000 (17:48 -0500)]
Committing Test Release 1.3.

11 years agoBug fixes in release script.
Jose A. Rivera [Tue, 5 Jun 2012 22:48:24 +0000 (17:48 -0500)]
Bug fixes in release script.

11 years agoBug fixes in release script.
Jose A. Rivera [Tue, 5 Jun 2012 22:45:16 +0000 (17:45 -0500)]
Bug fixes in release script.

11 years agoBug fixes in release script.
Jose A. Rivera [Tue, 5 Jun 2012 22:39:57 +0000 (17:39 -0500)]
Bug fixes in release script.

11 years agoFurther testing release script.
Jose A. Rivera [Tue, 5 Jun 2012 22:35:51 +0000 (17:35 -0500)]
Further testing release script.

11 years agoFurther testing release script.
Jose A. Rivera [Tue, 5 Jun 2012 22:30:54 +0000 (17:30 -0500)]
Further testing release script.

11 years agoCommitting Test Release 1.3.
Jose A. Rivera [Tue, 5 Jun 2012 22:27:40 +0000 (17:27 -0500)]
Committing Test Release 1.3.

11 years agoFurther testing release script.
Jose A. Rivera [Tue, 5 Jun 2012 21:57:38 +0000 (16:57 -0500)]
Further testing release script.

11 years agoFurther testing release script.
Jose A. Rivera [Tue, 5 Jun 2012 21:52:57 +0000 (16:52 -0500)]
Further testing release script.

11 years agoCommitting release 1.3.
Jose A. Rivera [Tue, 5 Jun 2012 21:50:05 +0000 (16:50 -0500)]
Committing release 1.3.

11 years agoBug fixes in release script.
Jose A. Rivera [Tue, 5 Jun 2012 21:50:00 +0000 (16:50 -0500)]
Bug fixes in release script.

11 years agoBug fixes in release script.
Jose A. Rivera [Tue, 5 Jun 2012 21:43:24 +0000 (16:43 -0500)]
Bug fixes in release script.

11 years agoBug fixes in release script.
Jose A. Rivera [Tue, 5 Jun 2012 21:42:52 +0000 (16:42 -0500)]
Bug fixes in release script.

11 years agoBug fixes in release script.
Jose A. Rivera [Tue, 5 Jun 2012 21:41:47 +0000 (16:41 -0500)]
Bug fixes in release script.

11 years agoBug fixes in release script.
Jose A. Rivera [Tue, 5 Jun 2012 21:41:05 +0000 (16:41 -0500)]
Bug fixes in release script.

11 years agoSmall, unnecessary change to silence a compiler warning.
crh [Tue, 5 Jun 2012 21:40:30 +0000 (16:40 -0500)]
Small, unnecessary change to silence a compiler warning.
 * Added a case to a switch() block so that the compiler (using -Wall) would not whine about a missing enumerated value.

11 years agoFurther testing release script.
Jose A. Rivera [Tue, 5 Jun 2012 21:39:09 +0000 (16:39 -0500)]
Further testing release script.

11 years agoBug fixes in release script.
Jose A. Rivera [Tue, 5 Jun 2012 21:37:42 +0000 (16:37 -0500)]
Bug fixes in release script.

11 years agoFurther testing release script.
Jose A. Rivera [Tue, 5 Jun 2012 21:35:15 +0000 (16:35 -0500)]
Further testing release script.

11 years agoFurther testing release script.
Jose A. Rivera [Tue, 5 Jun 2012 21:33:20 +0000 (16:33 -0500)]
Further testing release script.

11 years agoInitial commit.
crh [Tue, 5 Jun 2012 21:31:55 +0000 (16:31 -0500)]
Initial commit.
 * Sample configuration file.

11 years agoSmall, unnecessary change to silence a compiler warning.
crh [Tue, 5 Jun 2012 21:29:04 +0000 (16:29 -0500)]
Small, unnecessary change to silence a compiler warning.
 * Added a case to a switch() block so that the compiler (using -Wall) would not whine about a missing enumerated value.

11 years agoFurther testing release script..
Jose A. Rivera [Tue, 5 Jun 2012 21:27:13 +0000 (16:27 -0500)]
Further testing release script..

11 years agoBug fixes in release script.
Jose A. Rivera [Tue, 5 Jun 2012 21:23:55 +0000 (16:23 -0500)]
Bug fixes in release script.

11 years agoBug fixes in release script.
Jose A. Rivera [Tue, 5 Jun 2012 21:21:17 +0000 (16:21 -0500)]
Bug fixes in release script.

11 years agoBug fixes to the release script.
Jose A. Rivera [Tue, 5 Jun 2012 21:17:37 +0000 (16:17 -0500)]
Bug fixes to the release script.

11 years agoFurther testing on release script.
Jose A. Rivera [Tue, 5 Jun 2012 21:01:52 +0000 (16:01 -0500)]
Further testing on release script.

11 years agoMerge branch 'daemon' of ssh://gorch/~crh/work/code/Prequel-git into daemon
crh [Fri, 1 Jun 2012 18:13:09 +0000 (13:13 -0500)]
Merge branch 'daemon' of ssh://gorch/~crh/work/code/Prequel-git into daemon

11 years agoInitial commit of release script.
Jose A. Rivera [Thu, 31 May 2012 20:36:03 +0000 (15:36 -0500)]
Initial commit of release script.

11 years agoI modifed the exposed names of several function names, types, and other exposed ident...
crh [Wed, 30 May 2012 23:33:11 +0000 (18:33 -0500)]
I modifed the exposed names of several function names, types, and other exposed identifiers to make them more consistent.  This will make it easier to identify names that are specific to PeerDist v1, and to add support for PeerDist v2 later.  Names specific to PeerDist v1 now being with either "pd_v1" or "PD_v1", depending upon the type of object being named.