lkml.org 
[lkml]   [1999]   [Jul]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
Subjectsmall enhancement to smbfs 2.2.10



Hi,

in normal unix filesystem semantics, whether a file is read-only
(r--r--r--)
or not doesn't matter when deleting the file.
On the smbfs mounted directories (at least from a NT server) this isn't
true.
It fails to delete a read-only file, even "rm -f $file" doesn't work.
One has to do "chmod +w $file ; rm $file" to delete it.

I modified smbfs to do the above sequence if a regular rm fails, and
made it a mount option ("smbmnt -S" for "strong", like the similar
ncpfs option).

I'm using it since about 2 weeks and it seems to work fine (= no crash
and haven't yet found stale temp files from our rcs system...)

regards,
chris

Attached: smbstrong.diffs - patch for linux-2.2.10
smbmnt.diffs2 - patch for smbmnt from samba-2.0.4b

(See attached file: smbstrong.diffs.gz)(See attached file:
smbmnt.diffs2.gz)
[unhandled content-type:application/octet-stream][unhandled content-type:application/octet-stream]
\
 
 \ /
  Last update: 2005-03-22 13:52    [W:0.027 / U:0.068 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site