31 Oct, 2007
1 commit
-
We were requesting GENERIC_READ but that fails when we do not have
read permission on the file (even if we could read the ACL).Also move the dump access control entry code into debug ifdef.
Signed-off-by: Steve French
26 Oct, 2007
1 commit
-
Acked-by: Shirish Pargaonkar
CC: Cyrill Gorcunov
Signed-off-by: Steve French
20 Oct, 2007
2 commits
-
Acked-by: Shirish Pargaonkar
Signed-off-by: Steve French -
* git://git.kernel.org/pub/scm/linux/kernel/git/sfrench/cifs-2.6: (51 commits)
[CIFS] log better errors on failed mounts
[CIFS] Return better error when server requires signing but client forbids
[CIFS] fix typo
[CIFS] acl support part 4
[CIFS] Fix minor problems noticed by scan
[CIFS] fix bad handling of EAGAIN error on kernel_recvmsg in cifs_demultiplex_thread
[CIFS] build break
[CIFS] endian fixes
[CIFS] endian fixes in new acl code
[CIFS] Fix some endianness problems in new acl code
[CIFS] missing #endif from a previous patch
[CIFS] formatting fixes
[CIFS] Break up unicode_sessetup string functions
[CIFS] parse server_GUID in SPNEGO negProt response
[CIFS]
[CIFS] Fix endian conversion problem in posix mkdir
[CIFS] fix build break when lanman not enabled
[CIFS] remove two sparse warnings
[CIFS] remove compile warnings when debug disabled
[CIFS] CIFS ACL support part 3
...
19 Oct, 2007
1 commit
-
If the ATTR_KILL_S*ID bits are set then any mode change is only for clearing
the setuid/setgid bits. For CIFS, skip the mode change and let the server
handle it.Signed-off-by: Jeff Layton
Cc: Steven French
Cc: Christoph Hellwig
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
15 Oct, 2007
1 commit
-
Signed-off-by: Cyrill Gorcunov
Signed-off-by: Steve French
29 Sep, 2007
1 commit
-
This allows cifs to mount to ipc shares (IPC$)
which will allow user space applications to
layer over authenticated cifs connections
(useful for Wine and others that would want
to put DCE/RPC over CIFS or run CIFS named
pipes)Acked-by: Rob Shearman
Signed-off-by: Steve French
17 Sep, 2007
2 commits
-
posix ops
Signed-off-by: Steve French
-
There is a small memory leak in fs/cifs/inode.c::cifs_mkdir().
Storage for 'pInfo' is allocated with kzalloc(), but if the call
to CIFSPOSIXCreate(...) happens to return 0 and pInfo->Type == -1,
then we'll jump to the 'mkdir_get_info' label without freeing the
storage allocated for 'pInfo'.
This patch adds a kfree() call to free the storage just before
jumping to the label, thus getting rid of the leak.Signed-off-by: Jesper Juhl
Signed-off-by: Steve French
14 Sep, 2007
1 commit
-
When making a directory with POSIX mkdir calls, cifs_mkdir does not
respect the umask. This patch causes the new POSIX mkdir to create with
the right modeSigned-off-by: Jeff Layton
Signed-off-by: Steve French
31 Aug, 2007
1 commit
-
Signed-off-by: Steve French
23 Aug, 2007
1 commit
-
vmtruncate had added the same fix to handle the case of private pages
being Copy on writed while truncate_inode_pages is going onSigned-off-by: Steve French
19 Jul, 2007
1 commit
-
Previously the only way to do this was to umount all mounts to that server,
turn off a proc setting (/proc/fs/cifs/LinuxExtensionsEnabled).Fixes Samba bugzilla bug number: 4582 (and also 2008)
Signed-off-by: Steve French
17 Jul, 2007
2 commits
-
Signed-off-by: Steve French
-
Signed-off-by: Eric Sandeen
Signed-off-by: Andrew Morton
Signed-off-by: Steve French
15 Jul, 2007
1 commit
-
In the cleanup phase of the dbench test, we were noticing sharing
violation followed by failed directory removals when dbench
did not close the test files before the cleanup phase started.
Using the new POSIX unlink, which Samba has supported for a few
months, avoids this.Signed-off-by: Steve French
13 Jul, 2007
1 commit
-
This should be the last big batch of whitespace/formatting fixes.
checkpatch warnings for the cifs directory are down about 90% and
many of the remaining ones are harder to remove or make the code
harder to read.Signed-off-by: Steve French
10 Jul, 2007
1 commit
-
More than halfway there
Signed-off-by: Steve French
08 Jun, 2007
1 commit
-
This patch makes CIFS honour a process' umask like other filesystems.
Of course the server is still free to munge the permissions if it wants
to; but the client will send the "right" permissions to begin with.A few caveats:
1) It only applies to filesystems that have CAP_UNIX (aka support unix
extensions)
2) It applies the correct mode to the follow up CIFSSMBUnixSetPerms()
after remote creationWhen mode to CIFS/NTFS ACL mapping is complete we can do the
same thing for that case for servers which do not
support the Unix Extensions.Signed-off-by: Matt Keenen
Signed-off-by: Steve French
01 May, 2007
1 commit
-
When CIFS Unix Extensions are negotiated we get the Unix uid and gid
owners of the file from the server (on the Unix Query Path Info
levels), but if the server's uids don't match the client uid's users
were having to disable the Unix Extensions (which turned off features
they still wanted). The changeset patch allows users to override uid
and/or gid for file/directory owner with a default uid and/or gid
specified at mount (as is often done when mounting from Linux cifs
client to Windows server). This changeset also displays the uid
and gid used by default in /proc/mounts (if applicable).Also cleans up code by adding some of the missing spaces after
"if" keywords per-kernel style guidelines (as suggested by Randy Dunlap
when he reviewed the patch).Signed-off-by: Steve French
25 Apr, 2007
1 commit
-
Fix incorrect parsing of return data
Signed-off-by: Steve French
24 Apr, 2007
1 commit
-
Signed-off-by: Steve French
07 Apr, 2007
1 commit
-
Remove read only dos attribute on chmod when adding any write permission (ie on any of
user/group/other (not all of user/group/other ie 0222) when
mounted to windows.Suggested by: Urs Fleisch
Signed-off-by: Urs Fleisch
Signed-off-by: Steve French
23 Mar, 2007
1 commit
-
When a file had a dos attribute of 0x1 (readonly - but dos attribute
of archive was not set) - doing chmod 0777 or equivalent would
try to set a dos attribute of 0 (which some servers ignore)
rather than ATTR_NORMAL (0x20) which most servers accept.
Does not affect servers which support the CIFS Unix Extensions.Acked-by: Prasad Potluri
Acked-by: Shirish Pargaonkar
Signed-off-by: Steve French
10 Mar, 2007
1 commit
-
Signed-off-by: Alan Tyso
Signed-off-by: Jeff Layton
Signed-off-by: Steve French
27 Feb, 2007
3 commits
-
Signed-off-by: Steve French
-
There were two i_size_writes in the new truncate
function - we missed one in the last patch.
Noticed by Shaggy when he reviewed.Thank you Shaggy ...
CC: Shaggy
Signed-off-by: Steve French -
Could cause hangs on smp systems in i_size_read on a cifs inode
whose size has been previously simultaneously updated from
different processes.Thanks to Brian Wang for some great testing/debugging on this
hard problem.Fixes kernel bugzilla #7903
CC: Shirish Pargoankar
CC: Shaggy
Signed-off-by: Steve French
17 Feb, 2007
1 commit
-
atime flag was also overwritten. Noticed by Shirish when he was debugging
an atime problem. Should help performance a bit too.cifs should be getting time stamps from the server (that was the original
intent too)Signed-off-by: Steve French
15 Feb, 2007
1 commit
-
Thanks to Dirk for pointing this out.
Signed-off-by: Dirk Mueller
Signed-off-by: Steve French
09 Feb, 2007
1 commit
-
Signed-off-by: Steve French
17 Nov, 2006
1 commit
-
We were adjusting for timezone on readdir but not on stat
Signed-off-by: Steve French
08 Nov, 2006
1 commit
-
CIFS may perform I/O over the network in larger chunks than the page size,
so it should explicitly set stat->blksize to ensure optimal I/O bandwidthSigned-off-by: Dave Kleikamp
Signed-off-by: Steve French
02 Nov, 2006
1 commit
-
Fixes Samba bugzilla bug # 4182
Rename by handle failures (retry after rename by path) were not
being returned back.Signed-off-by: Steve French
13 Oct, 2006
1 commit
-
* git://git.kernel.org/pub/scm/linux/kernel/git/sfrench/cifs-2.6: (27 commits)
[CIFS] Missing flags2 for DFS
[CIFS] Workaround incomplete byte length returned by some
[CIFS] cifs Kconfig: don't select CONNECTOR
[CIFS] Level 1 QPathInfo needed for proper OS2 support
[CIFS] fix typo in previous patch
[CIFS] Fix old DOS time conversion to handle timezone
[CIFS] Do not need to adjust for Jan/Feb for leap day
[CIFS] Fix leaps year calculation for years after 2100
[CIFS] readdir (ffirst) enablement of accurate timestamps from legacy servers
[CIFS] Fix compiler warning with previous patch
[CIFS] Fix typo
[CIFS] Allow for 15 minute TZs (e.g. Nepal) and be more explicit about
[CIFS] Fix readdir of large directories for backlevel servers
[CIFS] Allow LANMAN21 support even in both POSIX non-POSIX path
[CIFS] Make use of newer QFSInfo dependent on capability bit instead of
[CIFS] Do not send newer QFSInfo to legacy servers which can not support it
[CIFS] Fix typo in name of new cifs_show_stats
[CIFS] Rename server time zone field
[CIFS] Handle legacy servers which return undefined time zone
[CIFS] CIFS support for /proc//mountstats part 1
...Manual conflict resolution in fs/cifs/connect.c
12 Oct, 2006
1 commit
-
Signed-off-by: Steve French
01 Oct, 2006
4 commits
-
Some filesystems, instead of simply decrementing i_nlink, simply zero it
during an unlink operation. We need to catch these in addition to the
decrement operations.Signed-off-by: Dave Hansen
Acked-by: Christoph Hellwig
Cc: Al Viro
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
This is mostly included for parity with dec_nlink(), where we will have some
more hooks. This one should stay pretty darn straightforward for now.Signed-off-by: Dave Hansen
Acked-by: Christoph Hellwig
Cc: Al Viro
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
When a filesystem decrements i_nlink to zero, it means that a write must be
performed in order to drop the inode from the filesystem.We're shortly going to have keep filesystems from being remounted r/o between
the time that this i_nlink decrement and that write occurs.So, add a little helper function to do the decrements. We'll tie into it in a
bit to note when i_nlink hits zero.Signed-off-by: Dave Hansen
Acked-by: Christoph Hellwig
Cc: Al Viro
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
Remove inclusions of linux/buffer_head.h that are no longer necessary due to the
transfer of a number of things out of there.Signed-Off-By: David Howells
Signed-off-by: Jens Axboe