Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

mount.davfs (from davfs2) allows one to mount a WebDAV server into the local filesystem. However, even if you want to read only one byte from a file, davfs2 will block until it downloads the whole file (which could be huge). For example, this blocks (virtually) forever on a WAN link.

dd if=/mnt/webdav/1GB.bin bs=1M count=1 of=1M.bin

The process can't be killed until the whole file is downloaded. (But you can force unmount, I suppose.)

In the following command, davfs2 downloads the whole file before passing a single byte to gzip:

pv < 100MB.bin | gzip > 100MB.bin.gz

I can bare with the problem in the first case (by avoiding it), but for the second case I need the filesystem driver to pass the data to the reading process as soon as the fs driver recieves the data, not after the whole file is downloaded. Are there any alternatives to davfs2 that can do this?

share|improve this question

1 Answer 1

You can try Fusedav, a WebDAV mounter for fuse. I was however not aware of such a limitation, are you sure your WebDAV server is properly configured ?

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.