block/ssh: Add basic .bdrv_truncate()
commit624f3006b8a26bcf7a0b2be13265ac99c65fd117
authorMax Reitz <mreitz@redhat.com>
Wed, 14 Feb 2018 20:49:15 +0000 (14 21:49 +0100)
committerMax Reitz <mreitz@redhat.com>
Fri, 2 Mar 2018 17:39:56 +0000 (2 18:39 +0100)
treeda31c5303e5b1864c96b5117d25726599ecd87ab
parentbd8e0e32dac0cfb7c4e42b5a2d2b407819df049f
block/ssh: Add basic .bdrv_truncate()

libssh2 does not seem to offer real truncation support, so we can only
grow files -- but that is better than nothing.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Message-id: 20180214204915.7980-4-mreitz@redhat.com
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Richard W.M. Jones <rjones@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
block/ssh.c