summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* Use busybox sync instead of sync alone.Jannis Pohlmann2012-03-262-2/+2
|
* Add sync at the end of tbdiff-{update,switch}.Jannis Pohlmann2012-03-232-0/+6
|
* Fix various runtime issues in tbdiff-switch.Jannis Pohlmann2012-03-231-7/+1
|
* Add a new tbdiff-switch command to switch a system to a new subvolume.Jannis Pohlmann2012-03-234-0/+102
|
* Call 'busybox reboot' at the end of tbdiff-update to reboot the system.Jannis Pohlmann2012-03-231-0/+3
|
* Hard-code more stuff (rm, mktemp) to busybox.Jannis Pohlmann2012-03-231-2/+2
|
* Hard-code buysbox cp and sed for now.Jannis Pohlmann2012-03-231-4/+4
|
* Add new tbdiff-update command to apply a patch to a system.Jannis Pohlmann2012-03-234-1/+134
| | | | | | | | | | | | | | | This command is written in bash and takes four parameters: * a device with a btrfs file system to mount * the source subvolume name * the target subvolume name * the path to a patch file or stream It then creates the target subvolume as a snapshot of the source subvolume, applies the patch in there, then creates a <target>-run snapshot and copies the boot files (vmlinuz, extlinux.conf) to the root file system. Lastly, it adjusts extlinux.conf to point to the -run snapshot.
* Switch to the autotools build system in tbdiff.morph.Jannis Pohlmann2012-03-231-6/+1
|
* Switch to a shared tbdiff library and make this an autotools project.Jannis Pohlmann2012-03-2227-87/+509
| | | | | | | | | | | | | | | | | | | | | | | | | This commit converts tbdiff to being an autotools-based project. This means that we now support the usual autoreconf -i && ./configure && make && make install process, plus we provide 'make check' for the tbdiff test suite. The tbdiff library is now build as a shared library and is also installed into the system for others to use. The library is libtool-versioned and ships a pkg-config file (tbdiff-1.pc). The headers were adjusted so that only tbdiff/tbdiff.h may be included directly; all others are considered internal. The tbdiff-create and tbdiff-deploy tools were changed to include this header file. The tbdiff library is still GPL, not LGPL. We might want to change this in the future. Thanks to switching to autotools we now have a way to make releases by means of 'make dist' and 'make distcheck'. Unfortunately, the latter currently fails, probably due to something being missing in tbdiff/Makefile.am.
* Add tbdiff.morph and DESTDIR support to Makefile.Jannis Pohlmann2012-03-192-4/+18
|
* Patch problem fixed! Still a problem with patch 7.Danny Abukalam2012-01-2711-25/+21
|
* Cross-Platform testing still kind of broken...Danny Abukalam2012-01-274-161/+96
|
* Corrupted git repoDanny Abukalam2012-01-2613-0/+163
|
* Fixed bug didn't exit when cross_plat.sh failed.Danny Abukalam2012-01-091-0/+6
|
* Merge branch 'test'Danny Abukalam2012-01-095-3/+104
|\
| * Added Cross Platform TestingDanny Abukalam2012-01-093-3/+104
| |
| * Added Patch files for testingDanny Abukalam2012-01-052-0/+0
|/
* Added library to control reading and writing to streamsDanny Abukalam2011-12-169-96/+291
| | | | | | Added Cross-endian platform support Changed gids and uids to respective variables Forced time_t to be written as a uint64_t to support cross-architecture
* mtime is now a time_t rather than a uint32_tRichard Maw2011-10-194-18/+18
| | | | | | In future it should be standardised so that diffs can be made on a different architecture to the one they are deployed on, but currently it doesn't work on the same architecture if that architecture is 64-bit
* Hopefully fixes a crash on 64-bitRichard Maw2011-10-191-2/+2
|
* Forgot some filesRichard Maw2011-10-192-0/+285
|
* Added xattr supportRichard Maw2011-10-176-10/+206
| | | | | Fixed inconsequential memory leak in tbdiff_create.c Lost memory would be cleaned up by OS at exit, but valgrind complains
* Should fix directory mtime differencesRichard Maw2011-10-172-32/+35
|
* Restructured tests so mandatory delay between source and targetRichard Maw2011-10-1417-102/+149
| | | | | | directories can be inserted, to ensure mtime is not equal now dir_add_remove fails because the mtime of the directory changed after a file in it was altered
* Fixed files losing group metadataRichard Maw2011-10-142-8/+25
| | | | | | | | | | | Actually it was losing all metadata other than that which changed metadata was lost when the file was removed, but only the data that changed was applied the fix is to ignore the metadata diff mask as all the data is written to the binary diff, however it needn't be, so if it gets fixed to only send what changed, the metadata will have to be read before the file is recreated and the metadata changed based on what was sent in the binary diff
* Fixed a typo that was bugging meRichard Maw2011-10-141-1/+1
|
* Fixed it not updating gid for symbolic links if only gid were different.Richard Maw2011-10-141-1/+1
|
* :facepalm: the test was failing from a bug in the test.Richard Maw2011-10-141-4/+4
| | | | | The corrected test also fails, however, so I guess I was right about there being a bug, though that is coincidental.
* Fixed some typos in testsRichard Maw2011-10-132-2/+19
| | | | | added test for group changes in symlinks symlinks change the group of what is referenced
* Tests and fix for a horrific bug where removing a symlink to aRichard Maw2011-10-132-33/+59
| | | | directory would remove the directory
* Added test for extended attributesRichard Maw2011-10-102-2/+61
|
* Altered tests to check for sticky and setgid bits on directoriesRichard Maw2011-10-102-20/+30
|
* Merge branch 'master' of git://gitorious.org/baserock/tbdiffRichard Maw2011-10-100-0/+0
|\ | | | | | | | | Conflicts: tests/test_lib.sh
| * Added the ability to test the return code of create and deployRichard Maw2011-10-075-13/+170
| | | | | | | | | | | | | | | | | | | | So expected failures can be made by comparing the return code to the expected Also socket tests have been added, add and diff expect create to fail for now The only sensible operation on sockets is to remove them as they need a program to bind them and that program (or a child) needs to be a server So tbdiff should fail if it has to perform such an act. It may be worth having an option to ignore the change, but for now it's better to fail and let the user know why so they can fix it
* | libtbd_create now fails if target directory has a socket.Richard Maw2011-10-105-12/+46
| | | | | | | | | | | | | | tbdiff-create will print a suggested fix Made check_command shell function able to use any type of command for return value checking Fixed minor bugs in TBD_ERROR macro not being used for some errors
* | Added the ability to test the return code of create and deployRichard Maw2011-10-106-13/+240
|/ | | | | | | | | | So expected failures can be made by comparing the return code to the expected Also socket tests have been added, add and diff expect create to fail for now The only sensible operation on sockets is to remove them as they need a program to bind them and that program (or a child) needs to be a server So tbdiff should fail if it has to perform such an act. It may be worth having an option to ignore the change, but for now it's better to fail and let the user know why so they can fix it
* Added tests for block devicesRichard Maw2011-10-062-0/+53
|
* Fixed tbd-create not writing the commands to alter special devices if they wereRichard Maw2011-10-061-12/+3
| | | | different
* Testing readme now doesn't refer to test scripts as bash scriptsRichard Maw2011-10-061-6/+6
|
* Made tests for character devicesRichard Maw2011-10-062-0/+53
|
* Removed bashisms from test scripts, so sh should be able to run themRichard Maw2011-10-069-28/+34
| | | | | | The temporary test directory is now made using mktemp -d instead of using uuid mktemp comes with coreutils, uuid does not, and mktemp makes the directory for you.
* Made the inline function more standardRichard Maw2011-10-062-3/+3
|
* Fixed paths being corrupted and making garbage paths appearRichard Maw2011-10-051-2/+5
| | | | | | | struct dirent pointer returned from readdir was being used after the DIR had been closed. malloc was reusing that memory when trying to construct a tbd_stat_t, but tried to fill it with data from the struct dirent which was owned by the DIR.
* tbd_error replaced with TBD_ERROR so that it is explicitly a macroRichard Maw2011-10-054-105/+109
| | | | | | TBD_ERROR should work when NDEBUG is defined. Previously return tbd_error(e); -> return return e; tbd_error is now an inline function, it feels tidier than statement expressions
* Remove debugging outputAlberto Ruiz2011-10-041-1/+0
|
* Renamed _tbd_stat to tbd_stat_from_pathAlberto Ruiz2011-10-041-5/+5
|
* Style fixesAlberto Ruiz2011-10-041-15/+10
|
* Style fixes for readability and consistencyAlberto Ruiz2011-10-041-4/+3
|
* Fix bracket styleAlberto Ruiz2011-10-041-2/+1
|