diff options
author | Steve French <sfrench@us.ibm.com> | 2006-05-31 18:40:51 -0400 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2006-05-31 18:40:51 -0400 |
commit | 3979877e5606ecc58c5a31bd0078c6d80ba9cbe7 (patch) | |
tree | d221455b5176ea8b26e750d6498c3ed822998ba3 /fs/cifs/readdir.c | |
parent | 26a21b980b1897b11fd7f9ba4bf6060c9e15df10 (diff) |
[CIFS] Support for setting up SMB sessions to legacy lanman servers
Diffstat (limited to 'fs/cifs/readdir.c')
-rw-r--r-- | fs/cifs/readdir.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/fs/cifs/readdir.c b/fs/cifs/readdir.c index 6b36c43d38f5..53903a27f786 100644 --- a/fs/cifs/readdir.c +++ b/fs/cifs/readdir.c | |||
@@ -31,8 +31,8 @@ | |||
31 | #include "cifs_fs_sb.h" | 31 | #include "cifs_fs_sb.h" |
32 | #include "cifsfs.h" | 32 | #include "cifsfs.h" |
33 | 33 | ||
34 | /* BB fixme - add debug wrappers around this function to disable it fixme BB */ | 34 | #ifdef CONFIG_CIFS_DEBUG2 |
35 | /* static void dump_cifs_file_struct(struct file *file, char *label) | 35 | static void dump_cifs_file_struct(struct file *file, char *label) |
36 | { | 36 | { |
37 | struct cifsFileInfo * cf; | 37 | struct cifsFileInfo * cf; |
38 | 38 | ||
@@ -53,7 +53,8 @@ | |||
53 | } | 53 | } |
54 | 54 | ||
55 | } | 55 | } |
56 | } */ | 56 | } |
57 | #endif /* DEBUG2 */ | ||
57 | 58 | ||
58 | /* Returns one if new inode created (which therefore needs to be hashed) */ | 59 | /* Returns one if new inode created (which therefore needs to be hashed) */ |
59 | /* Might check in the future if inode number changed so we can rehash inode */ | 60 | /* Might check in the future if inode number changed so we can rehash inode */ |
@@ -597,7 +598,9 @@ static int find_cifs_entry(const int xid, struct cifsTconInfo *pTcon, | |||
597 | . and .. for the root of a drive and for those we need | 598 | . and .. for the root of a drive and for those we need |
598 | to start two entries earlier */ | 599 | to start two entries earlier */ |
599 | 600 | ||
600 | /* dump_cifs_file_struct(file, "In fce ");*/ | 601 | #ifdef CONFIG_CIFS_DEBUG2 |
602 | dump_cifs_file_struct(file, "In fce "); | ||
603 | #endif | ||
601 | if(((index_to_find < cifsFile->srch_inf.index_of_last_entry) && | 604 | if(((index_to_find < cifsFile->srch_inf.index_of_last_entry) && |
602 | is_dir_changed(file)) || | 605 | is_dir_changed(file)) || |
603 | (index_to_find < first_entry_in_buffer)) { | 606 | (index_to_find < first_entry_in_buffer)) { |
@@ -980,9 +983,10 @@ int cifs_readdir(struct file *file, void *direntry, filldir_t filldir) | |||
980 | rc = cifs_filldir(current_entry, file, | 983 | rc = cifs_filldir(current_entry, file, |
981 | filldir, direntry,tmp_buf); | 984 | filldir, direntry,tmp_buf); |
982 | file->f_pos++; | 985 | file->f_pos++; |
983 | if(file->f_pos == cifsFile->srch_inf.index_of_last_entry) { | 986 | if(file->f_pos == |
987 | cifsFile->srch_inf.index_of_last_entry) { | ||
984 | cFYI(1,("last entry in buf at pos %lld %s", | 988 | cFYI(1,("last entry in buf at pos %lld %s", |
985 | file->f_pos,tmp_buf)); /* BB removeme BB */ | 989 | file->f_pos,tmp_buf)); |
986 | cifs_save_resume_key(current_entry,cifsFile); | 990 | cifs_save_resume_key(current_entry,cifsFile); |
987 | break; | 991 | break; |
988 | } else | 992 | } else |