Unable to change the 'name' field from 'ext3_dir_entry_2' structure.

ashish mahamuni ashitpro at yahoo.co.in
Sat Mar 22 07:47:04 UTC 2008


1: I am trying to write a tool to hide a file/directory.
   So I am changing the 'name' field to NULL.
   Directories get hide properly. But nothing for file(Unable to change the  'name' field)

2: Of course filesystem is mounted.   


--- On Fri, 21/3/08, Theodore Tso <tytso at MIT.EDU> wrote:

> From: Theodore Tso <tytso at MIT.EDU>
> Subject: Re: Unable to change the 'name' field from 'ext3_dir_entry_2' structure.
> To: "ashish mahamuni" <ashitpro at yahoo.co.in>
> Cc: ext3-users at redhat.com
> Date: Friday, 21 March, 2008, 6:08 PM
> On Fri, Mar 21, 2008 at 05:46:57PM +0530, ashish mahamuni
> wrote:
> > Hello everybody,
> > 
> > I am trying to rename the file/directory by renaming
> the 'name' field from ext3_dir_entry_2 structure.
> > 
> > I can easily do it for directories.
> > 
> > I am reading the structure then I change this field,
> and writing it back as it is.
> > 
> > New file name length will be similar as the old(just
> for simplicity).  
> > 
> > But whenever I do this for file. It doesn't do any
> thing.
> > 
> > 'write' sys call gets execute properly. Next
> time if I read dir entry for this file it shows me older
> one.
> > 
> > Am I doing anything wrong? 
> 
> #1.  *Why* are you trying to do this?
> 
> #2.  Are you doing this on an unmounted filesystem?  Or is
> the
>      filesystem mounted when you tried to modify the
> filesystem directly
>      using the write system call?
> 
> 							- Ted


      Unlimited freedom, unlimited storage. Get it now, on http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/





More information about the Ext3-users mailing list