rdiff-backup-bugs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Rdiff-backup-bugs] [bug #19895] On cifs volume, set_escape_dos_devices


From: Jonathan Hankins
Subject: [Rdiff-backup-bugs] [bug #19895] On cifs volume, set_escape_dos_devices raises "Permission denied" exception when lstat called on "aux"
Date: Fri, 18 May 2007 03:09:15 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3

URL:
  <http://savannah.nongnu.org/bugs/?19895>

                 Summary: On cifs volume, set_escape_dos_devices raises
"Permission denied" exception when lstat called on "aux"
                 Project: rdiff-backup
            Submitted by: jonathanhankins
            Submitted on: Friday 05/18/2007 at 03:09
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

In fs_abilities.py, set_escape_dos_devices tries to lstat "aux" and raises
this error:

Exception '[Errno 13] Permission denied: '/mnt/cifs/winsnap/snapshot/Latin
I/rdiff-backup.tmp.23/aux'' raised of class 'exceptions.OSError':

With kernel-2.6.20, on a cifs-mounted Windows share, you get permission
denied when you lstat any of the DOS "special" files, such as "aux" and
"nul".  Simply doing a "ls /path/to/cifs/mount/aux" should show the error.

I found some hints googling for "cifs aux nul" that indicate that it is an
error to attempt to access these files over CIFS.

On a NetWare CIFS volume, there is no "aux" so the check works correctly.  I
assume the same is true for a samba share.

Just for kicks, a cifs kernel debug trace shows something like:

May 17 16:35:59 bkupserv kernel:  fs/cifs/inode.c: Getting info on \aux
May 17 16:35:59 bkupserv kernel:  fs/cifs/transport.c: For smb_command 50
May 17 16:35:59 bkupserv kernel:  fs/cifs/transport.c: Sending smb of length
82
May 17 16:35:59 bkupserv kernel:  fs/cifs/connect.c: rfc1002 length 0x27)
May 17 16:35:59 bkupserv kernel:  fs/cifs/connect.c: invalid transact2 word
count
May 17 16:35:59 bkupserv kernel: Status code returned 0xc0000022
NT_STATUS_ACCESS_DENIED
May 17 16:35:59 bkupserv kernel:  fs/cifs/netmisc.c:  !!Mapping smb error
code 5 to POSIX err -13 !!
May 17 16:35:59 bkupserv kernel:  fs/cifs/cifssmb.c: Send error in QPathInfo
= -13
May 17 16:35:59 bkupserv kernel:  CIFS VFS: Error 0xfffffff3 on
cifs_get_inode_info in lookup of \aux
May 17 16:35:59 bkupserv kernel:  fs/cifs/dir.c: CIFS VFS: leaving
cifs_lookup (xid = 3966) rc = -13






    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?19895>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]