Christopher R. Hertel [Tue, 30 Sep 2014 02:55:21 +0000 (21:55 -0500)]
Gstr, PD_utils: Updated comments.
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).
Christopher R. Hertel [Mon, 22 Sep 2014 22:14:11 +0000 (17:14 -0500)]
PrequelD.c: Moved code that belongs elsewhere.
* Many comment cleanups.
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.
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".
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.
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.
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.
Christopher R. Hertel [Mon, 22 Sep 2014 20:01:56 +0000 (15:01 -0500)]
.gitignore: Ignore compiled python scripts.
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.
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.
crh [Wed, 12 Jun 2013 17:51:03 +0000 (12:51 -0500)]
Restructured the pd_v1ShouldHash() function to make it a little cleaner.
crh [Mon, 29 Apr 2013 20:40:33 +0000 (15:40 -0500)]
Timestamp, again.
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.
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.
crh [Wed, 23 Jan 2013 04:57:46 +0000 (22:57 -0600)]
Updating tags.
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.
Jose A. Rivera [Wed, 23 Jan 2013 04:49:57 +0000 (22:49 -0600)]
Fixing a utility script.
crh [Fri, 5 Oct 2012 22:19:08 +0000 (17:19 -0500)]
Timestamp update problem. Again.
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.
crh [Thu, 20 Sep 2012 17:19:52 +0000 (12:19 -0500)]
Added some FIX comments.
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.
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.
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.
crh [Tue, 18 Sep 2012 19:01:19 +0000 (14:01 -0500)]
Updating the ID.
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.
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.
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.
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.
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.
crh [Fri, 14 Sep 2012 16:21:19 +0000 (11:21 -0500)]
Trying to get things synced up.
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.
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.
crh [Thu, 13 Sep 2012 14:44:15 +0000 (09:44 -0500)]
Merge branch 'master' of ssh://git.fedorahosted.org/git/prequel
crh [Wed, 12 Sep 2012 23:09:05 +0000 (18:09 -0500)]
* Fixed a minor typo.
crh [Wed, 12 Sep 2012 23:07:45 +0000 (18:07 -0500)]
Re-ordered some logic.
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
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.
crh [Wed, 12 Sep 2012 05:30:11 +0000 (00:30 -0500)]
Updated the Readme files to match current design and implementation.
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.
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.
crh [Thu, 12 Jul 2012 21:24:30 +0000 (16:24 -0500)]
Changed a function name in PD_sha2.oSSL to conform with convention.
crh [Thu, 12 Jul 2012 20:28:30 +0000 (15:28 -0500)]
Small change to a comment.
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.
crh [Wed, 20 Jun 2012 16:54:16 +0000 (11:54 -0500)]
Small updates.
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.
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.
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.
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.
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.
crh [Wed, 6 Jun 2012 22:50:57 +0000 (17:50 -0500)]
Merge branch 'master' into daemon
Jose A. Rivera [Wed, 6 Jun 2012 22:01:31 +0000 (17:01 -0500)]
Committing Prequel release 1.1.
Jose A. Rivera [Wed, 6 Jun 2012 22:01:21 +0000 (17:01 -0500)]
Bug fixes to git_utils.git() and release script.
Jose A. Rivera [Wed, 6 Jun 2012 21:48:03 +0000 (16:48 -0500)]
Bug fixes to release script.
Jose A. Rivera [Wed, 6 Jun 2012 21:43:56 +0000 (16:43 -0500)]
Bug fixes to release script.
Jose A. Rivera [Wed, 6 Jun 2012 21:38:30 +0000 (16:38 -0500)]
Bug fixes to release script.
Jose A. Rivera [Wed, 6 Jun 2012 21:36:49 +0000 (16:36 -0500)]
Bug fixes to git_utils.git().
Jose A. Rivera [Wed, 6 Jun 2012 20:51:41 +0000 (15:51 -0500)]
Bug fixes in release script.
Jose A. Rivera [Wed, 6 Jun 2012 20:48:59 +0000 (15:48 -0500)]
Bug fixes in release script.
Jose A. Rivera [Wed, 6 Jun 2012 20:15:55 +0000 (15:15 -0500)]
Bug fixes in release script and release config file.
Jose A. Rivera [Wed, 6 Jun 2012 19:06:11 +0000 (14:06 -0500)]
Updating pq_cgi to have proper version information.
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
Jose A. Rivera [Wed, 6 Jun 2012 17:04:03 +0000 (12:04 -0500)]
Updating keywords and header formatting for python scripts.
Jose A. Rivera [Wed, 6 Jun 2012 16:03:53 +0000 (11:03 -0500)]
Cleaning up master branch, creating release configuration file.
Jose A. Rivera [Wed, 6 Jun 2012 05:44:37 +0000 (00:44 -0500)]
Further testing release script.
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.
crh [Wed, 6 Jun 2012 02:39:14 +0000 (21:39 -0500)]
Found a typo.
* Added a missing semicolon.
Jose A. Rivera [Tue, 5 Jun 2012 22:56:09 +0000 (17:56 -0500)]
Committing Test Release 1.3.
Jose A. Rivera [Tue, 5 Jun 2012 22:56:06 +0000 (17:56 -0500)]
Bug fixes in release script.
Jose A. Rivera [Tue, 5 Jun 2012 22:51:28 +0000 (17:51 -0500)]
Bug fixes in release script.
Jose A. Rivera [Tue, 5 Jun 2012 22:48:52 +0000 (17:48 -0500)]
Committing Test Release 1.3.
Jose A. Rivera [Tue, 5 Jun 2012 22:48:24 +0000 (17:48 -0500)]
Bug fixes in release script.
Jose A. Rivera [Tue, 5 Jun 2012 22:45:16 +0000 (17:45 -0500)]
Bug fixes in release script.
Jose A. Rivera [Tue, 5 Jun 2012 22:39:57 +0000 (17:39 -0500)]
Bug fixes in release script.
Jose A. Rivera [Tue, 5 Jun 2012 22:35:51 +0000 (17:35 -0500)]
Further testing release script.
Jose A. Rivera [Tue, 5 Jun 2012 22:30:54 +0000 (17:30 -0500)]
Further testing release script.
Jose A. Rivera [Tue, 5 Jun 2012 22:27:40 +0000 (17:27 -0500)]
Committing Test Release 1.3.
Jose A. Rivera [Tue, 5 Jun 2012 21:57:38 +0000 (16:57 -0500)]
Further testing release script.
Jose A. Rivera [Tue, 5 Jun 2012 21:52:57 +0000 (16:52 -0500)]
Further testing release script.
Jose A. Rivera [Tue, 5 Jun 2012 21:50:05 +0000 (16:50 -0500)]
Committing release 1.3.
Jose A. Rivera [Tue, 5 Jun 2012 21:50:00 +0000 (16:50 -0500)]
Bug fixes in release script.
Jose A. Rivera [Tue, 5 Jun 2012 21:43:24 +0000 (16:43 -0500)]
Bug fixes in release script.
Jose A. Rivera [Tue, 5 Jun 2012 21:42:52 +0000 (16:42 -0500)]
Bug fixes in release script.
Jose A. Rivera [Tue, 5 Jun 2012 21:41:47 +0000 (16:41 -0500)]
Bug fixes in release script.
Jose A. Rivera [Tue, 5 Jun 2012 21:41:05 +0000 (16:41 -0500)]
Bug fixes in release script.
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.
Jose A. Rivera [Tue, 5 Jun 2012 21:39:09 +0000 (16:39 -0500)]
Further testing release script.
Jose A. Rivera [Tue, 5 Jun 2012 21:37:42 +0000 (16:37 -0500)]
Bug fixes in release script.
Jose A. Rivera [Tue, 5 Jun 2012 21:35:15 +0000 (16:35 -0500)]
Further testing release script.
Jose A. Rivera [Tue, 5 Jun 2012 21:33:20 +0000 (16:33 -0500)]
Further testing release script.
crh [Tue, 5 Jun 2012 21:31:55 +0000 (16:31 -0500)]
Initial commit.
* Sample configuration file.
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.
Jose A. Rivera [Tue, 5 Jun 2012 21:27:13 +0000 (16:27 -0500)]
Further testing release script..
Jose A. Rivera [Tue, 5 Jun 2012 21:23:55 +0000 (16:23 -0500)]
Bug fixes in release script.
Jose A. Rivera [Tue, 5 Jun 2012 21:21:17 +0000 (16:21 -0500)]
Bug fixes in release script.
Jose A. Rivera [Tue, 5 Jun 2012 21:17:37 +0000 (16:17 -0500)]
Bug fixes to the release script.
Jose A. Rivera [Tue, 5 Jun 2012 21:01:52 +0000 (16:01 -0500)]
Further testing on release script.
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
Jose A. Rivera [Thu, 31 May 2012 20:36:03 +0000 (15:36 -0500)]
Initial commit of release script.
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.