Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve eiselekd #12

Merged
merged 6 commits into from
Aug 7, 2018
Merged

Improve eiselekd #12

merged 6 commits into from
Aug 7, 2018

Conversation

eiselekd
Copy link
Collaborator

With this patchset the files that are created via test/gen_disks.sh inside
a zfs raid-z1 image can be extraced again. This is done with testcase
test/test_files.sh and test/test_server.sh

- Generate testdisks via losetup
- When using local disk images BLK_PROXY_ADDR = ("files:","datatab.txt")
  use json structure inside datatab.txt.
- To enable disk images bigger than 2TB split up a disk into 1 TB
  chunks. The disk is specified as an array of chunks.
- Improve the server protocol:
  Send data in chunks of 256kB. Send with packet prefixes and handle error:
  'n' : next datachunk < 256kB
  'e' : error occured
  'l' : last chunk transmitted
- supply a testcase for file/server based run of py-zfs-rescue:
  test/test_files.sh
  test/test_server.sh

examples:

8< -------------- datatab.txt -----------------
{
	"/dev/disk/by-id/ata-WDC_WD30EZRX-00D8PB0_WD-WMC4N1642572-part1" : [ "/mnt/parts-disk-id0-err-ata-WDC_WD30EZRX-00D8PB0_WD-WMC4N1642572-part1.0", "/mnt/parts-disk-id0-err-ata-WDC_WD30EZRX-00D8PB0_WD-WMC4N1642572-part1.1", "/mnt/parts-disk-id0-err-ata-WDC_WD30EZRX-00D8PB0_WD-WMC4N1642572-part1.2"],
	"/dev/disk/by-id/ata-WDC_WD30EFRX-68EUZN0_WD-WCC4N1KPRKPX-part1" : [ "/mnt/parts-disk-id1-ata-WDC_WD30EFRX-68EUZN0_WD-WCC4N1KPRKPX-part1.0", "/mnt/parts-disk-id1-ata-WDC_WD30EFRX-68EUZN0_WD-WCC4N1KPRKPX-part1.1", "/mnt/parts-disk-id1-ata-WDC_WD30EFRX-68EUZN0_WD-WCC4N1KPRKPX-part1.2"],
	"/dev/disk/by-id/ata-WDC_WD30EFRX-68EUZN0_WD-WCC4N7ZXC1E0-part1" : [ "/mnt/parts-disk-id2-ata-WDC_WD30EFRX-68EUZN0_WD-WCC4N7ZXC1E0-part1.0", "/mnt/parts-disk-id2-ata-WDC_WD30EFRX-68EUZN0_WD-WCC4N7ZXC1E0-part1.1", "/mnt/parts-disk-id2-ata-WDC_WD30EFRX-68EUZN0_WD-WCC4N7ZXC1E0-part1.2"]
}
8< --------------------------------------------

8< -------------- datatab.txt -----------------
{
	"/dev/loop0" : [ "/home/test/disk0.bin"],
	"/dev/loop1" : [ "/home/test/disk1.bin"],
	"/dev/loop2" : [ "/home/test/disk2.bin"]
}
8< --------------------------------------------
- Before the generated cache was linear instead of hirarchical,
  which resulted in false lookups on large trees.
  Create a cache tree instead.
- Add verbosity option
- add -C option to default to childset archivation
- read bonus attributes via funtions

This is the last part of the patchseries: the files that are created
inside the zfs images test/disk[0-3].bin via test/gen_disks.sh are
extracted again into rescue/ds_<ds_num>.tar when running
'cd test; make runfiles' and 'cd test; make runserver'
@eiselekd eiselekd merged commit 43a3894 into master Aug 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant