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

 
 

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

Submitter:  None
Submitted:  Tue 10 Jul 2012 10:49:38 PM UTC
   
 
Category:  None Priority:  5 - Normal
Severity:  3 - Normal Status:  Done
Privacy:  Public Assigned to:  _71007
Originator Email:  -email is unavailable- Open/Closed:  Closed
Operating System:  GNU/Linux
* Mandatory Fields

Add a New Comment Rich Markup
   

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. 

Ed

Anonymous
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

- <_71007>
Tue 10 Jul 2012 10:49:38 PM UTC, original submission:  

Hello

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'? 

Ed

Anonymous

 

(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 _71007 (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-04-20 _71007 StatusIn Progress Done
        Open/ClosedOpen Closed
    2012-07-11 _71007 StatusNone In Progress
        Assigned toNone _71007

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code