Displaying 5 results from an estimated 5 matches for "smb_fattr".
2005 Jan 04
0
[2.6 patch] smbfs: make some functions static
...1-full/fs/smbfs/proto.h.old 2005-01-04 00:57:42.000000000 +0100
+++ linux-2.6.10-mm1-full/fs/smbfs/proto.h 2005-01-04 01:00:11.000000000 +0100
@@ -25,7 +25,6 @@
extern int smb_proc_flush(struct smb_sb_info *server, __u16 fileid);
extern void smb_init_root_dirent(struct smb_sb_info *server, struct smb_fattr *fattr,
struct super_block *sb);
-extern void smb_decode_unix_basic(struct smb_fattr *fattr, struct smb_sb_info *server, char *p);
extern int smb_proc_getattr(struct dentry *dir, struct smb_fattr *fattr);
extern int smb_proc_setattr(struct dentry *dir, struct smb_fattr *fattr);
extern int...
1998 Sep 04
0
Linux SMB Mount utils patch
...void smb_renew_times(struct dentry *);
+
+/* linux/fs/smbfs/ioctl.c */
+int smb_ioctl (struct inode *, struct file *, unsigned int, unsigned long);
+
+/* linux/fs/smbfs/inode.c */
+struct super_block *smb_read_super(struct super_block *, void *, int);
+void smb_get_inode_attr(struct inode *, struct smb_fattr *);
+void smb_invalidate_inodes(struct smb_sb_info *);
+int smb_revalidate_inode(struct dentry *);
+int smb_notify_change(struct dentry *, struct iattr *);
+unsigned long smb_invent_inos(unsigned long);
+struct inode *smb_iget(struct super_block *, struct smb_fattr *);
+extern int init_smb_fs(voi...
2000 Jun 28
1
[Patch] Shorter patch for smbfs 2.2.16
...was cluttering things up a lot.
+ * 20/03/00 (chrisp)
+ * - fixed FINDFIRST flags for OS/2 Server
+ * - added lastname/mask stuff back (OS/2 needs it)
*/
#include <linux/types.h>
@@ -62,6 +62,28 @@
static int
smb_proc_do_getattr(struct dentry *dir, struct smb_fattr *fattr,struct
smb_sb_info *server);
+static void
+str_upper(char *name, int len)
+{
+ while (len--)
+ {
+ if (*name >= 'a' && *name <= 'z')
+ *name -= ('a' - 'A');
+ name++;
+ }
+}
+
+...
2003 Dec 01
0
No subject
...as a
Yes, yes! I'm happy not to be alone :-)
Urban kindly provided this fix that worked for me in 2.2.16
--- fs/smbfs/proc.c.orig Wed Sep 20 23:54:27 2000
+++ fs/smbfs/proc.c Wed Sep 20 23:56:59 2000
@@ -1453,6 +1453,11 @@
static void
smb_finish_dirent(struct smb_sb_info *server, struct smb_fattr *fattr)
{
+ /* workaround for win95 giving back a volume label and not a directory
+ if there is a dir with the same name as the volume label. sigh. */
+ if ((server->mnt->version & SMB_FIX_WIN95) && (fattr->attr & aVOLID))
+ fattr->attr |= aDIR;
+
fattr...
2003 Dec 01
0
No subject
....4.7-pre6 kernel but it should be possible to make the
same changes to whatever kernel you use.
The changes are to smb_proc_close_inode.
/Urban
--- linux-2.4.7-pre6-orig/fs/smbfs/proc.c Wed Jul 4 17:09:28 2001
+++ linux/fs/smbfs/proc.c Fri Jul 13 13:15:37 2001
@@ -1111,6 +1111,12 @@
struct smb_fattr fattr;
smb_get_inode_attr(ino, &fattr);
smb_proc_setattr_ext(server, ino, &fattr);
+
+ /* set the archive bit if we modified the file */
+ if (ino->flags & SMB_F_LOCALWRITE) {
+ fattr.attr |= aARCH;
+ smb_proc_setattr(server, ino, &fattr);
+ }
}
result...