google-code-export / s3ql

Automatically exported from code.google.com/p/s3ql
0 stars 0 forks source link

Can't mount remote fs with '--compress bzip2' #417

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
OS: Gentoo.
Tried s3ql versions 2.3 and 2.4. This worked before, but now the particular 
option '--compress bzip2' produces an error. lzma and zlib values both work for 
me.

$ mount.s3ql --compress bzip2 swift://auth.selcdn.ru/gems /mnt/sel_gems
usage: mount.s3ql-python3.3 [...skipped here...] <storage-url> <mountpoint>

mount.s3ql-python3.3: error: argument --compress: bzip2 is not a valid 
--compress value

I noticed that if there's some unsupported value instead of 'bzip2' (say, 
'foobar'), the message is a bit different:
mount.s3ql-python3.3: error: argument --compress: Invalid compression 
algorithm: foobar

Original issue reported on code.google.com by kensuke....@gmail.com on 30 Aug 2013 at 5:14

GoogleCodeExporter commented 9 years ago
The issue is that the regex '^([a-z]+)(?:-([0-9]))?$' used to parse the 
compress argument won't match "bzip2" because it won't match the "2" digit.

Original comment by radhermit on 30 Aug 2013 at 5:30

GoogleCodeExporter commented 9 years ago
Right you are! Thanks for the report and analysis!

Original comment by Nikolaus@rath.org on 30 Aug 2013 at 10:50

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 3bb15f24a23a.

Original comment by Nikolaus@rath.org on 31 Aug 2013 at 4:05