I have a fresh local FS created with 2.7

# mkfs.s3ql --version
S3QL 2.7


Creating the FS:

# mkfs.s3ql local:///tmp/s3ql/fs2.7
Before using S3QL, make sure to read the user's guide, especially
the 'Important Rules to Avoid Loosing Data' section.
Enter encryption password: 
Confirm encryption password: 
Generating random encryption key...
Creating metadata tables...
Dumping metadata...
..objects..
..blocks..
..inodes..
..inode_blocks..
..symlink_targets..
..names..
..contents..
..ext_attributes..
Compressing and uploading metadata...
Wrote 0.00 MiB of compressed metadata.



Mounting the FS works fine:

# mount.s3ql local:///tmp/s3ql/fs2.7 /tmp/s3ql/mnt/
Using 2 upload threads.
Autodetected 4058 file descriptors available for cache entries
Enter file system encryption passphrase: 
Using cached metadata.
Setting cache size to 331 MB
Mounting filesystem...



Write a test file

echo "Test" > /tmp/s3ql/mnt/testfile.txt


Unmount the FS

# umount.s3ql /tmp/s3ql/mnt/


The FS is transfered to a ubuntu box running 2.21 (+ a custom backend, 
could that affect this??), built from the debian strech repo 
<https://packages.debian.org/stretch/s3ql>

Running fsck on this filesystem fails:

$ fsck.s3ql local:///tmp/s3ql/fs2.7/
ERROR: Uncaught top-level exception:
Traceback (most recent call last):
  File "/usr/bin/fsck.s3ql", line 11, in <module>
    load_entry_point('s3ql==2.21', 'console_scripts', 'fsck.s3ql')()
  File "/usr/lib/s3ql/s3ql/fsck.py", line 1155, in main
    backend = get_backend(options)
  File "/usr/lib/s3ql/s3ql/common.py", line 260, in get_backend
    getattr(options, 'compress', ('lzma', 2)), raw)()
  File "/usr/lib/s3ql/s3ql/common.py", line 340, in get_backend_factory
    backend.fetch('s3ql_passphrase')
  File "/usr/lib/s3ql/s3ql/backends/common.py", line 354, in fetch
    return self.perform_read(do_read, key)
  File "/usr/lib/s3ql/s3ql/backends/common.py", line 108, in wrapped
    return method(*a, **kw)
  File "/usr/lib/s3ql/s3ql/backends/common.py", line 317, in perform_read
    fh = self.open_read(key)
  File "/usr/lib/s3ql/s3ql/backends/local.py", line 83, in open_read
    fh.metadata = _read_meta(fh)
  File "/usr/lib/s3ql/s3ql/backends/local.py", line 254, in _read_meta
    raise CorruptedObjectError('Invalid object header: %r' % buf)
s3ql.backends.common.CorruptedObjectError: Invalid object header: b
'\x80\x02}q\x00(X\x04\x00'


I was expecting that fsck should either succeed or give me an exit code 
"32", indicating that the FS needed to be upgraded.
Any ideas?

Regards
PA


-- 
You received this message because you are subscribed to the Google Groups 
"s3ql" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to