diff options
| -rw-r--r-- | fs/cifs/README | 15 | ||||
| -rw-r--r-- | fs/cifs/connect.c | 3 |
2 files changed, 11 insertions, 7 deletions
diff --git a/fs/cifs/README b/fs/cifs/README index bec7b3fc8a72..7b4ac096cd11 100644 --- a/fs/cifs/README +++ b/fs/cifs/README | |||
| @@ -101,12 +101,15 @@ Allowing User Unmounts | |||
| 101 | ====================== | 101 | ====================== |
| 102 | To permit users to ummount directories that they have user mounted (see above), | 102 | To permit users to ummount directories that they have user mounted (see above), |
| 103 | the utility umount.cifs may be used. It may be invoked directly, or if | 103 | the utility umount.cifs may be used. It may be invoked directly, or if |
| 104 | umount.cifs is placed in /sbin, umount -i can invoke the cifs umount helper | 104 | umount.cifs is placed in /sbin, umount can invoke the cifs umount helper |
| 105 | (at least for most versions of the umount utility) for umount of cifs | 105 | (at least for most versions of the umount utility) for umount of cifs |
| 106 | mounts. As with mount.cifs, to enable user unmounts umount.cifs must be marked | 106 | mounts, unless umount is invoked with -i (which will avoid invoking a umount |
| 107 | as suid (e.g. "chmod +s /sbin/umount.cifs"). For this utility to succeed | 107 | helper). As with mount.cifs, to enable user unmounts umount.cifs must be marked |
| 108 | the target path must be a cifs mount, and the uid of the current user must | 108 | as suid (e.g. "chmod +s /sbin/umount.cifs") or equivalent (some distributions |
| 109 | match the uid of the user who mounted the resource. | 109 | allow adding entries to a file to the /etc/permissions file to achieve the |
| 110 | equivalent suid effect). For this utility to succeed the target path | ||
| 111 | must be a cifs mount, and the uid of the current user must match the uid | ||
| 112 | of the user who mounted the resource. | ||
| 110 | 113 | ||
| 111 | Also note that the customary way of allowing user mounts and unmounts is | 114 | Also note that the customary way of allowing user mounts and unmounts is |
| 112 | (instead of using mount.cifs and unmount.cifs as suid) to add a line | 115 | (instead of using mount.cifs and unmount.cifs as suid) to add a line |
| @@ -404,6 +407,8 @@ A partial list of the supported mount options follows: | |||
| 404 | This has no effect if the server does not support | 407 | This has no effect if the server does not support |
| 405 | Unicode on the wire. | 408 | Unicode on the wire. |
| 406 | nomapchars Do not translate any of these seven characters (default). | 409 | nomapchars Do not translate any of these seven characters (default). |
| 410 | remount remount the share (often used to change from ro to rw mounts | ||
| 411 | or vice versa) | ||
| 407 | 412 | ||
| 408 | The mount.cifs mount helper also accepts a few mount options before -o | 413 | The mount.cifs mount helper also accepts a few mount options before -o |
| 409 | including: | 414 | including: |
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index ac1f970e5369..e568cc47a7f9 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c | |||
| @@ -178,8 +178,7 @@ cifs_reconnect(struct TCP_Server_Info *server) | |||
| 178 | server->workstation_RFC1001_name); | 178 | server->workstation_RFC1001_name); |
| 179 | } | 179 | } |
| 180 | if(rc) { | 180 | if(rc) { |
| 181 | set_current_state(TASK_INTERRUPTIBLE); | 181 | msleep(3000); |
| 182 | schedule_timeout(3 * HZ); | ||
| 183 | } else { | 182 | } else { |
| 184 | atomic_inc(&tcpSesReconnectCount); | 183 | atomic_inc(&tcpSesReconnectCount); |
| 185 | spin_lock(&GlobalMid_Lock); | 184 | spin_lock(&GlobalMid_Lock); |
