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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Mar 22, 2008 at 01:17:04PM +0530, ashish mahamuni wrote:
> 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)

So you're deliberately corrupting the filesystem.  This wouldn't be
for some university class assignment, would it?

> 2: Of course filesystem is mounted.   

Well, there's your problem.  The name is cached in the kernel's dentry
cache.  It won't necessarily work for directories, either, BTW.  I
think you've just been getting lucky.

					- Ted

_______________________________________________
Ext3-users mailing list
Ext3-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/ext3-users

[Index of Archives]         [Linux RAID]     [Kernel Development]     [Red Hat Install]     [Video 4 Linux]     [Postgresql]     [Fedora]     [Gimp]     [Yosemite News]

  Powered by Linux