[linux-cifs-client] NT_STATUS_ILLEGAL_CHARACTER

Howard Butler hobu at iastate.edu
Thu Oct 27 21:29:44 GMT 2005


All,

I'm having trouble with a CIFS mount using RHEL4.  Here is kernel and 
cifs info:

>[root at kenyon cifs]# /sbin/mount.cifs -V
>mount.cifs version: 1.5
>[root at kenyon cifs]# uname -r
>2.6.9-22.EL

/etc/fstab entry:
>//XXX.XXX.XXX.XXX/cssmWorking /network cifs 
>credentials=/etc/cred,auto,owner,uid=500,gid=501,dir_mode=0775,file_mode=0644,domain=IASTATE.EDU 
>0 0

Mounting works ok, and I can create and remove directories from the 
mount, but when I try to read a file (or touch an empty one, like 
"touch /network/foo" in this example), an Input/Ouput error is raised 
and  NT_STATUS_ILLEGAL_CHARACTER is given in the logs.  Reading 
through the archives, I found out how to turn on cifsFYI and 
DebugData, which puts more info in dmesg.  Relevant information from 
dmesg showing the mount and the attempt to touch the file in the 
mount is below.  The mount is against an ONStor NAS gateway which is 
a member of the IASTATE domain and works perfectly well with our 
windows clients.

Another bit of information is that I can use smbclient to read files 
(have not tried creating them).  I have been unable to mount it with 
smbmount (all kinds of access denied messages no matter how much list 
advice I follow and how many permutations I try).

  fs/cifs/connect.c: CIFS VFS: in cifs_mount as Xid: 176 with uid: 0
  fs/cifs/connect.c: Domain name set
  fs/cifs/connect.c: Username: hobu
  fs/cifs/connect.c: UNC: \\xxx.xxx.xxx.xxx\cssmWorking ip: xxx.xxx.xxx.xxx
  fs/cifs/connect.c: Socket created
  fs/cifs/connect.c: Existing smb sess not found
  fs/cifs/transport.c: For smb_command 114
  fs/cifs/transport.c: Sending smb of length 47
  fs/cifs/connect.c: Demultiplex PID: 24407
  fs/cifs/connect.c: Peek length rcvd: 0x24 beginning 0x61)
  fs/cifs/connect.c:  Mid 0x65 matched - waking up
  fs/cifs/connect.c: Security Mode: 0x3 Capabilities: 0x33fc Time Zone: 0
  fs/cifs/connect.c: In sesssetup
  fs/cifs/transport.c: For smb_command 115
  fs/cifs/transport.c: Sending smb of length 224
  fs/cifs/connect.c: Peek length rcvd: 0x24 beginning 0x8a)
  fs/cifs/connect.c:  Mid 0x66 matched - waking up
  fs/cifs/connect.c: UID = 1
  fs/cifs/connect.c: CIFS Session Established successfully
  fs/cifs/connect.c: file mode: 0x1a4  dir mode: 0x1fd
  fs/cifs/transport.c: For smb_command 117
  fs/cifs/transport.c: Sending smb of length 104
  fs/cifs/connect.c: Peek length rcvd: 0x24 beginning 0x42)
  fs/cifs/connect.c:  Mid 0x67 matched - waking up
  fs/cifs/connect.c: Tcon flags: 0x1
  fs/cifs/connect.c: CIFS Tcon rc = 0
  fs/cifs/cifssmb.c: In QFSDeviceInfo
  fs/cifs/transport.c: For smb_command 50
  fs/cifs/transport.c: Sending smb of length 68
  fs/cifs/connect.c: Peek length rcvd: 0x24 beginning 0x44)
  fs/cifs/connect.c:  Mid 0x68 matched - waking up
  fs/cifs/cifssmb.c: In QFSAttributeInfo
  fs/cifs/transport.c: For smb_command 50
  fs/cifs/transport.c: Sending smb of length 68
  fs/cifs/connect.c: Peek length rcvd: 0x24 beginning 0x50)
  fs/cifs/connect.c:  Mid 0x69 matched - waking up
  fs/cifs/connect.c: CIFS VFS: leaving cifs_mount (xid = 176) rc = 0
  fs/cifs/inode.c: CIFS VFS: in cifs_read_inode as Xid: 177 with uid: 0
  fs/cifs/inode.c: Getting info on
  fs/cifs/cifssmb.c: In QPathInfo path
  fs/cifs/transport.c: For smb_command 50
  fs/cifs/transport.c: Sending smb of length 74
  fs/cifs/connect.c: Peek length rcvd: 0x24 beginning 0x9e)
  fs/cifs/connect.c:  Mid 0x6a matched - waking up
  fs/cifs/inode.c:  Old time 0
  fs/cifs/inode.c:  New time 6973098
  fs/cifs/inode.c:  Directory inode
  fs/cifs/inode.c: CIFS VFS: in cifs_revalidate as Xid: 178 with uid: 500
  fs/cifs/inode.c: Revalidate:  inode 0xe4b3cd34 count 1 dentry: 
0xf7831ac8 d_time 0 jiffies 6973100
  fs/cifs/inode.c: CIFS VFS: leaving cifs_revalidate (xid = 178) rc = 0
  fs/cifs/inode.c: CIFS VFS: in cifs_revalidate as Xid: 179 with uid: 0
  fs/cifs/inode.c: Revalidate:  inode 0xe4b3cd34 count 1 dentry: 
0xf7831ac8 d_time 0 jiffies 6994103
  fs/cifs/inode.c: Getting info on
fs/cifs/cifssmb.c: In QPathInfo path
  fs/cifs/transport.c: For smb_command 50
  fs/cifs/transport.c: Sending smb of length 74
  fs/cifs/connect.c: Peek length rcvd: 0x24 beginning 0x9e)
  fs/cifs/connect.c:  Mid 0x6b matched - waking up
  fs/cifs/inode.c:  Old time 6973098
  fs/cifs/inode.c:  New time 6994104
  fs/cifs/inode.c:  Directory inode
  fs/cifs/inode.c: cifs_revalidate - inode unchanged
  fs/cifs/inode.c: CIFS VFS: leaving cifs_revalidate (xid = 179) rc = 0
  fs/cifs/dir.c: CIFS VFS: in cifs_lookup as Xid: 180 with uid: 0
  fs/cifs/dir.c:  parent inode = 0xe4b3cd34 name is: foo and dentry = 
0xf7831630
  fs/cifs/dir.c: In lookup nd flags 0x300 open intent flags 0x8942
  fs/cifs/dir.c:  NULL inode in lookup
  fs/cifs/dir.c:  Full path: \foo inode = 0x00000000
  fs/cifs/inode.c: Getting info on \foo
  fs/cifs/cifssmb.c: In QPathInfo path \foo
  fs/cifs/transport.c: For smb_command 50
  fs/cifs/transport.c: Sending smb of length 82
  fs/cifs/connect.c: Peek length rcvd: 0x24 beginning 0x27)
  fs/cifs/connect.c:  Mid 0x6c matched - waking up
Status code returned 0xc0000034 NT_STATUS_OBJECT_NAME_NOT_FOUND
  fs/cifs/netmisc.c:  !!Mapping smb error code 2 to POSIX err -2 !!
  fs/cifs/cifssmb.c: Send error in QPathInfo = -2
  fs/cifs/dir.c: CIFS VFS: leaving cifs_lookup (xid = 180) rc = 0
  fs/cifs/dir.c: CIFS VFS: in cifs_create as Xid: 181 with uid: 0
  fs/cifs/transport.c: For smb_command 162
  fs/cifs/transport.c: Sending smb of length 94
  fs/cifs/connect.c: Peek length rcvd: 0x24 beginning 0x27)
  fs/cifs/connect.c:  Mid 0x6d matched - waking up
Status code returned 0xc0000161 NT_STATUS_ILLEGAL_CHARACTER
  fs/cifs/netmisc.c:  !!Mapping smb error code 31 to POSIX err -5 !!
  fs/cifs/cifssmb.c: Error in Open = -5
  fs/cifs/dir.c: cifs_create returned 0xfffffffb
  fs/cifs/dir.c: CIFS VFS: leaving cifs_create (xid = 181) rc = -5

Any ideas?

Howard 



More information about the linux-cifs-client mailing list