helpdavfs2 - Support: sr #108086, Cannot get mount C system call to...


sr #108086: Cannot get mount C system call to work with davfs

Submitted by:  None
Submitted on:  Tue 10 Jul 2012 10:49:38 PM UTC  
Category: NonePriority: 5 - Normal
Severity: 3 - NormalStatus: Done
Privacy: PublicAssigned to: Werner Baumann <wbaumann>
Originator Email: -unavailable-Open/Closed: Closed
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.


Fri 13 Jul 2012 01:15:30 AM UTC, comment #2:

Thanks for your reply Werner. What you say makes sense to me, but I couldn't make anything of your source code - I'm very much a novice when it comes to C. I suspect I actually need to use a Fuse call to set up my mount. There is a lot of abstruse Fuse documentation to wade through, and I think I'll settle for just using the "system" C function, which works fine for me.


Wed 11 Jul 2012 07:26:10 PM UTC, comment #1:

The mount system call can only mount file systems supported by the kernerl. There is no davfs kernel file system.
davfs2 uses the fuse file system which is designed to connect to all kinds of file systems that are running in userspace.

Please see the davfs2 sources, kernel_interface.c and mount_davfs.c, for how davfs2 is mounted.


Werner Baumann <wbaumann>
Project AdministratorIn charge of this item.
Tue 10 Jul 2012 10:49:38 PM UTC, original submission:


I am trying to mount a davfs filesystem from within a C program with:

mount ("http://<uri>", "/mnt", "davfs", 0, NULL);

This command returns -1, and the mount fails.

The equivalent 'system' command works fine:

system ("mount -t davfs http://<uri> /mnt");

Have you any idea how I can go about investigating what went wrong with 'mount'?




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

Attach File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


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

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

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 20 Apr 2014 07:15:12 PM UTCwbaumannStatusIn Progress=>Done
    Wed 11 Jul 2012 07:26:10 PM UTCwbaumannStatusNone=>In Progress
      Assigned toNone=>wbaumann

    Back to the top

    Powered by Savane 3.1-cleanup1