Hi Rebecca,
On Thu, 18 Jun 2009, Ucich, Rebecca wrote:
> I'm using ntfs-3g coupled with fuse as our file system of choice for
> several mounted drives on CentOS. These mounted drives are visible via
> SMB shares to one windows machine.
>
> I've found that .fuse_hidden files are created if I delete files on
> these mounted drives whilst the windows machine has a lock on the file.
Correct. The file name is highly confusing (many people think it's related
to some rootkit). Probably it should be called .fuse_deleted. Fixing this
issue is on the TODO but it's not very trivial.
> From reading the fuse mailing list archives and the README, I see that
> the option -o hard_remove should disable the creation of these
> .fuse_hidden files, which is the preferred option for my system.
I'm not sure. When hard_remove was reviewed last time then it was decided
that it's unsafe with NTFS-3G. We will review this again.
> However, I can't get the option to work, and I'm guessing this is
> because the option isn't passed through ntfs-3g to FUSE.
Right. We try to limit users to shot themself in the foot ;)
> The relevant line of my fstab is as follows:
>
>
> /dev/sda5 /mnt/store1 ntfs-3g
> rw,uid=1103,gid=520,umask=0002,noatime,hard_remove,defaults 0 0
>
> My questions are thus:
>
>
>
> a) Is there an option that will allow this hard_remove option to
> be 'heard' by FUSE?
No. But please find a patch below which should do what you would like. Use
it at your own risk and please let us know how it works. If you find no
problem then probably we will ;)
-------------------------------------------------------------------------->
--- src/ntfs-3g.c 21 May 2009 19:42:36 -0000 1.142
+++ src/ntfs-3g.c 18 Jun 2009 23:32:59 -0000
@@ -2285,7 +2285,7 @@
if (fuse_opt_add_arg(&args, "") == -1)
goto err;
- if (fuse_opt_add_arg(&args, "-ouse_ino,kernel_cache,attr_timeout=0") ==
-1)
+ if (fuse_opt_add_arg(&args,
"-ouse_ino,kernel_cache,attr_timeout=0,hard_remove") == -1)
goto err;
if (ctx->debug)
if (fuse_opt_add_arg(&args, "-odebug") == -1)
<--------------------------------------------------------------------------
> b) Is there a different work around I should be using?
Don't let Windows to lock the files.
> c) Have I missed something obvious?
No. You did everything fine.
Regards,
Szaka
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
ntfs-3g-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ntfs-3g-devel