patch-2.4.20 linux-2.4.20/fs/smbfs/inode.c
Next file: linux-2.4.20/fs/smbfs/proc.c
Previous file: linux-2.4.20/fs/reiserfs/version.c
Back to the patch index
Back to the overall index
- Lines: 43
- Date:
Thu Nov 28 15:53:15 2002
- Orig file:
linux-2.4.19/fs/smbfs/inode.c
- Orig date:
Mon Feb 25 11:38:09 2002
diff -urN linux-2.4.19/fs/smbfs/inode.c linux-2.4.20/fs/smbfs/inode.c
@@ -43,6 +43,7 @@
#endif
#define SMB_TTL_DEFAULT 1000
+#define SMB_TIMEO_DEFAULT 30
static void smb_delete_inode(struct inode *);
static void smb_put_super(struct super_block *);
@@ -277,6 +278,7 @@
{ "iocharset", 0, 'i' },
{ "codepage", 0, 'c' },
{ "ttl", 0, 't' },
+ { "timeo", 0, 'o' },
{ NULL, 0, 0}
};
@@ -330,6 +332,9 @@
case 't':
mnt->ttl = value;
break;
+ case 'o':
+ mnt->timeo = value;
+ break;
default:
printk ("smbfs: Unrecognized mount option %s\n",
optopt);
@@ -376,6 +381,8 @@
if (mnt->ttl != SMB_TTL_DEFAULT)
seq_printf(s, ",ttl=%d", mnt->ttl);
+ if (mnt->timeo != SMB_TIMEO_DEFAULT)
+ seq_printf(s, ",timeo=%d", mnt->timeo);
return 0;
}
@@ -467,6 +474,7 @@
SMB_NLS_MAXNAMELEN);
mnt->ttl = SMB_TTL_DEFAULT;
+ mnt->timeo = SMB_TIMEO_DEFAULT;
if (ver == SMB_MOUNT_OLDVERSION) {
mnt->version = oldmnt->version;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)