helpdavfs2 - Support: sr #109594, 0-byte files, Input/output error

 
 

sr #109594: 0-byte files, Input/output error

Submitted by:  Massimo <massimo_b>
Submitted on:  Fri 30 Nov 2018 10:33:39 AM UTC  
 
Category:  None Priority:  5 - Normal
Severity:  3 - Normal Status:  In Progress
Privacy:  Public Assigned to:  Werner Baumann <wbaumann>
Open/Closed:  Open Operating System:  GNU/Linux

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 04 Dec 2018 06:07:09 PM UTC, comment #1: 

There is something special about 0-byte-files in webDAV because they may be created as side effect of locking.

But we need some more investigation. So please do this:

  • add option "debug most" to your davfs2.conf file.
  • mount the file system
  • issue just one command: cat /mnt/sd2dav/0-byte-Windows
  • umount the file system
  • search your log-files for entries from mount.davfs and attach them to this item

Werner

Werner Baumann <wbaumann>
Project AdministratorIn charge of this item.
Fri 30 Nov 2018 10:33:39 AM UTC, original submission:  

Creating 0-byte size files on the Webdav-Server, any reading results in I/O error. First I thought the issue is a bug on the Webdav Server. But with a different client, using Windows Explorer, I can't reproduce.

Steps to reproduce:
1. Create a 0-byte file "0-byte-Windows" from Windows Explorer or any other Webdav client.

2. Mount from Linux:

$ mount.davfs -V
davfs2 1.5.4

$ mount |grep dav
https://sd2dav.1und1.de/ on /mnt/sd2dav type fuse (rw,nosuid,nodev,noexec,relatime,user_id=4728,group_id=4728,allow_other,max_read=16384,uid=4728,gid=4728,user=mb,helper=davfs)

$ cd /mnt/sd2dav

$ stat 0-byte-Windows
  File: 0-byte-Windows
  Size: 0         Blocks: 0          IO Block: 4096   regular empty file
Device: 3eh/62d Inode: 93931767225792  Links: 1
Access: (0644/-rw-r--r--)  Uid: ( 4728/      mb)   Gid: ( 4728/      mb)
Access: 2018-11-30 11:17:37.000000000 +0100
Modify: 2018-11-30 11:17:22.000000000 +0100
Change: 2018-11-30 11:17:22.000000000 +0100
 Birth: -
$ md5sum 0-byte-Windows
md5sum: 0-byte-Windows: Input/output error

However creating a 0-byte file from the local mount works:

$ touch 0-byte-Linux
$ md5sum 0-byte-Linux
d41d8cd98f00b204e9800998ecf8427e  0-byte-Linux

But every 0-byte file created from any other clients fails to be synced or read. I guess this is some bug on the caching or something.

Weird enough, on Android the app "FolderSync" has the same issue, which cannot be reproduced with Windows Explorer either. Maybe some library on Android is similar to davfs2.

I don't have any other reference client or testing webdav server.

Massimo <massimo_b>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by wbaumann (Posted a comment)
  • -email is unavailable- added by massimo_b (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-12-04 wbaumann StatusNone => In Progress
        Assigned toNone => wbaumann

    Back to the top


    Powered by Savane 3.5