Hi Szaka,

Thank you for your quick response.

I implemented the patch you supplied, and it worked without problem; the
file system seems stable and no issues have been encountered thus far.

That said, I have taken your warnings on board and I will be using a
software-based workaround for this issue for the time being. NTFS-3G is
a fantastic library and I don't wish to compromise its stability or the
stability of FUSE on my system. 

Many thanks again for your quick and helpful reply. Have a wonderful
week.

Regards,

-Rebecca.

-----Original Message-----

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



DISCLAIMER:---------------------------------------------------------------------------
This e-mail transmission and any documents, files and previous e-mail messages
attached to it are private and confidential. They may contain proprietary or 
copyright
material or information that is subject to legal professional privilege. They 
are for
the use of the intended recipient only.  Any unauthorised viewing, use, 
disclosure,
copying, alteration, storage or distribution of, or reliance on, this message is
strictly prohibited. No part may be reproduced, adapted or transmitted without 
the
written permission of the owner. If you have received this transmission in 
error, or
are not an authorised recipient, please immediately notify the sender by return 
email,
delete this message and all copies from your e-mail system, and destroy any 
printed
copies. Receipt by anyone other than the intended recipient should not be 
deemed a
waiver of any privilege or protection. Thales Australia does not warrant or 
represent
that this e-mail or any documents, files and previous e-mail messages attached 
are
error or virus free.
--------------------------------------------------------------------------------------


------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
_______________________________________________
ntfs-3g-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ntfs-3g-devel

Reply via email to