Bug 187183
Summary: | cifs directory listings wrong | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 4 | Reporter: | John Newbigin <jn> |
Component: | kernel | Assignee: | Steve Dickson <steved> |
Status: | CLOSED ERRATA | QA Contact: | Brian Brock <bbrock> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 4.0 | CC: | jbaron |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | RHBA-2007-0304 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2007-05-08 01:03:13 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 176344, 205629 |
Description
John Newbigin
2006-03-29 00:43:23 UTC
The mount command also needs a target directory: mount -t cifs \\\\linuxserver\\testuser -o username=testuser /mnt/cifstest hmmm. i'm a little confused b/c 2.6.9-34 include cifs version 1.34a I am getting confused with version numbers. It is cifs version 1.40a(RHEL) that I am using (though I think I have used 1.34 in the past). I have confirmed this problem is still present in kernel 2.6.9-34.0.1.EL The red hat version of cifs (1.34) does not list directories correctly, a self compiled version of cifs (http://pserver.samba.org/samba/ftp/cifs-cvs/cifs-1.40a-forFC3orRHEL4orSuSEWrk9.tar.gz) does. The problem is that ls shows the wrong file names. The real files do exist and stat works on the real files, but ls is told the wrong names so the user sees the wrong names, and ls can not stat the files (because they don't exist, and hence the error 'No such file or directory') Example of problem: [test@el4 ~]$ cd testing/ [test@el4 testing]$ ls testing [test@el4 testing]$ stat testing stat: cannot stat `testing': No such file or directory [test@el4 testing]$ stat testfile File: `testfile' Size: 15 Blocks: 2048 IO Block: 16384 regular file Device: 10h/16d Inode: 228890 Links: 1 Access: (0644/-rw-r--r--) Uid: ( 6860/ test) Gid: ( 1000/ test) Access: 2006-03-29 12:42:08.000000000 +1100 Modify: 2006-06-26 11:24:29.000000000 +1000 Change: 2006-06-26 11:24:29.000000000 +1000 Example of correct results, using 1.40a: [test@el4 ~]$ cd testing/ [test@el4 testing]$ ls a A lower testfile UPPER [test@el4 testing]$ stat testfile File: `testfile' Size: 15 Blocks: 2048 IO Block: 16384 regular file Device: 10h/16d Inode: 8492 Links: 1 Access: (0644/-rw-r--r--) Uid: ( 6860/ test) Gid: ( 1000/ test) Access: 2006-03-29 12:42:08.000000000 +1100 Modify: 2006-06-26 11:24:29.000000000 +1000 Change: 2006-06-26 11:24:29.000000000 +1000 [test@el4 testing]$ committed in stream U5 build 42.10. A test kernel with this patch is available from http://people.redhat.com/~jbaron/rhel4/ I am testing 42.11 which so far is working well. This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux maintenance release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Update release for currently deployed products. This request is not yet committed for inclusion in an Update release. QE ack for 4.5. An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2007-0304.html |