[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Unable to change the 'name' field from 'ext3_dir_entry_2' structure.
- From: Theodore Tso <tytso MIT EDU>
- To: ashish mahamuni <ashitpro yahoo co in>
- Cc: ext3-users redhat com
- Subject: Re: Unable to change the 'name' field from 'ext3_dir_entry_2' structure.
- Date: Fri, 21 Mar 2008 08:38:46 -0400
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
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]