ovh / svfs

The Swift Virtual File System
Other
374 stars 54 forks source link

gpg says iobuf_write failed #148

Open jeffallen opened 7 years ago

jeffallen commented 7 years ago

Context

Steps to reproduce this issue :

Use gpg to compress and encrypt something, writing to an svfs volume, like:

tar -C / -c etc | gpg --batch --passphrase $BACKUP_PASSPHRASE --compress-algo bzip2 -c -o /pca/bucketname/etc.tar.gpg

Results you expected :

Writing from gpg should work. I suspect from the error message that gpg is using the writev system call (which deals in iobuf_t's).

Results you observed :

gpg: /pca/uf6/home-20170829.tar.gpg: write error: Input/output error gpg: DBG: bzCompress: iobuf_write failed gpg: iobuf_flush failed on close: file write error

I can get a debug log if it is necessary, but I'd rather not remount this partition at the moment.

jeffallen commented 7 years ago

If I remove the -o from gpg and let it write to stdout (then use redirection to put it into the svfs partition) it works. So it seems like gpg thinks it can do something special that svfs can't really handle.