search for: smbfs_i

Displaying 6 results from an estimated 6 matches for "smbfs_i".

2000 Jun 28
1
[Patch] Shorter patch for smbfs 2.2.16
...#endif + /* + * Directory timestamps in the core protocol aren't updated + * when a file is added, so we give them a very short TTL. + */ + if (server->opt.protocol < SMB_PROTOCOL_LANMAN2) + { + unsigned long age = jiffies - dir->u.smbfs_i.oldmtime; + if (age > 2*HZ) + smb_invalid_dir_cache(dir); + } if (server->conn_pid) error = smb_revalidate_inode(dentry); @@ -420,6 +430,7 @@ dentry->d_parent->d_name.name, dentry->d_name.name, mode); #endif +...
2001 Mar 23
0
[linux-lvm] EXT2-fs panic (device lvm(58,0)):
....4.3p6/fs/smbfs/inode.c linux-2.4.3p6-aed/fs/smbfs/inode.c --- linux-2.4.3p6/fs/smbfs/inode.c Fri Mar 23 10:54:53 2001 +++ linux-2.4.3p6-aed/fs/smbfs/inode.c Fri Mar 23 10:57:06 2001 @@ -65,7 +65,7 @@ if (!result) return result; result->i_ino = fattr->f_ino; - memset(&(result->u.smbfs_i), 0, sizeof(result->u.smbfs_i)); + /* The inode->u struct is zeroed for us by new_inode() */ smb_set_inode_attr(result, fattr); if (S_ISREG(result->i_mode)) { result->i_op = &smb_file_inode_operations; diff -ru linux-2.4.3p6/fs/udf/ialloc.c linux-2.4.3p6-aed/fs/udf/ialloc.c -...
1998 Sep 04
0
Linux SMB Mount utils patch
...nfo *); +int smb_proc_connect(struct smb_sb_info *); +int smb_proc_disconnect(struct smb_sb_info *); +int smb_proc_trunc(struct smb_sb_info *, __u16, __u32); +void smb_init_root_dirent(struct smb_sb_info *, struct smb_fattr *); + +static inline int +smb_is_open(struct inode *i) +{ + return (i->u.smbfs_i.open == SMB_SERVER(i)->generation); +} + +/* linux/fs/smbfs/sock.c */ +int smb_round_length(int); +int smb_valid_socket(struct inode *); +void smb_close_socket(struct smb_sb_info *); +int smb_release(struct smb_sb_info *server); +int smb_connect(struct smb_sb_info *server); +int smb_request(stru...
2003 Dec 01
0
No subject
...*inode = dentry->d_inode; time_t last_time; + off_t last_sz; int error = 0; DEBUG1("\n"); /* - * If this is a file opened with write permissions, - * the inode will be up-to-date. - */ - if (S_ISREG(inode->i_mode) && smb_is_open(inode)) - { - if (inode->u.smbfs_i.access != SMB_O_RDONLY) - goto out; - } - - /* * Check whether we've recently refreshed the inode. */ if (time_before(jiffies, inode->u.smbfs_i.oldmtime + HZ/10)) @@ -271,8 +262,9 @@ * (Note: a size change should have a different mtime.) */ last_time = inode->i_mtime; +...
2003 Dec 01
0
No subject
...&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 = smb_proc_close(server, ino->u.smbfs_i.fileid, Return-Path: <urban@teststation.com> Delivered-To: samba@lists.samba.org Received: from fungus.teststation.com (fungus.teststation.com [212.32.186.211]) by lists.samba.org (Postfix) with ESMTP id F092C5581 for <samba@lists.samba.org>; Fri, 10 Aug 2001 07:48:14 -0700 (PDT) R...
2003 Dec 01
0
No subject
...ecords, and every test works OK. On an older message from Mr. Urban I found the following tip: UB> If this used to work in 2.2.7 you can try removing these two lines from UB> smb_proc_open (fs/smbfs/proc.c) UB> if (!(wish & (O_WRONLY | O_RDWR))) UB> ino->u.smbfs_i.access = SMB_O_RDONLY; UB> It's the only difference in this part of the code since 2.2.7, but I think UB> it is ok. I check the source code on 2.2.19 and now looks like: #if 0 /* FIXME: why is this code not in? below we fix it so that a caller wanting RO doesn't g...