On Tue, Jul 31, 2012 at 7:22 AM, Stef Bon <[email protected]> wrote:
> Hi,
>
> I can mount using the commandline utility mount.cifs,
>
> bit from a c program it does not work.
>
> How do I turn on debugging??
>
> (from the general mount command)?
>
> Stef
>
> 2012/7/31 Shirish Pargaonkar <[email protected]>:
>> On Tue, Jul 31, 2012 at 3:25 AM, Stef Bon <[email protected]> wrote:
>>> Please give some advice how to deal with these errors.
>>>
>>> Stef
>>>
>>> 2012/7/30 Stef Bon <[email protected]>:
>>>> Hi,
>>>>
>>>> I'm writing a mount module, which can mount cifs. But I get constantly 
>>>> errors:
>>>>
>>>> Jul 30 01:01:21 asus20110414.bononline.nl fuse-workspace[7570]:
>>>> mount_resource: mount //SCLFS20091030/public
>>>> /mnt/fuse-workspace/8b1cd1abd18e90c9f5a112627f779ee2 cifs
>>>> user=sbon,password=******,uid=1000,gid=1000,domain=BONONLINE,rw,acl,user_xattr,cifsacl,posixpaths
>>>>
>>>> THis is ouput of the logging of fuse-workspace, and it tries to mount
>>>> the share //SCLFS20091030/public at
>>>> /mnt/fuse-workspace/8b1cd1abd18e90c9f5a112627f779ee2, with the
>>>> options.
>>>>
>>>> I get constantly -22 errors, and nothing gets mounted. Do I have to
>>>> add the ip or something?
>>>>
>>>> Stef
>>> --
>>> To unsubscribe from this list: send the line "unsubscribe linux-cifs" in
>>> the body of a message to [email protected]
>>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>>
>> Can you ping the server SCLFS20091030
>> You can turn cifs debug on and see where error 22 (EINVAL)
>> is coming from.
>> A wireshark trace will reveal info whether anything is going over
>> the wire

You can echo 7 > /proc/fs/cifs/cifsFYI to turn on debugging
and echo 0 > /proc/fs/cifs/cifsFYI to turn it off.
--
To unsubscribe from this list: send the line "unsubscribe linux-cifs" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to