Re: Modifying ext3

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

 



On Sat, Jun 14, 2008 at 5:36 AM, Veda Tripathi <veda.trips@xxxxxxxxx> wrote:
> Hi all,
> I am trying to add parity to Linux ext3 file system.The design is I am using
> one direct pointer of the inode structure to store the parity of the whole
> file. For that I have edited 2 files namely "ext3_fs.h" and "inode.c" in the
> ext3 FS.I have added some wrapper functions and written some additional
> functions. Now I want to implement this system as a loadable kernel module.
> Now when I am trying to build this module, the building process is
> failing.Following is the dump that I am getting.
>
> 1) first command
>
> make -C /usr/src/linux-2.6.22.5 M=`pwd` modules
> make: Entering directory `/usr/src/linux-2.6.22.5'
> Building modules, stage 2.
> MODPOST 0 modules
> make: Leaving directory `/usr/src/linux-2.6.22.5'
>
> 2)second command
>
> make -C /lib/modules/$(uname -r)/build M=`pwd` modules
> make: Entering directory `/usr/src/linux-2.6.22.5'
>  Building modules, stage 2.
> MODPOST 0 modules
> make: Leaving directory `/usr/src/linux-2.6.22.5'
>
> You see both commands are failing. I am running 2.6.22.5 source kernel . I
> am trying to build with 2.6.22.5 source tree which has been configured and
> built previously.
>
>  Please comment on this dump what could be the problem?
>
> After that following things have to be done
>
> 1) inserting the module in the kernel
> 2) creating and mounting the modified file system
> 3) verification and testing
>
> The next problem is I have no idea about the above step 2. I know how to
> create ext3 in a file and mount it (loopback device method)but how to mount
> this modified ext3?

As specified earlier, your makefile is wrong. Your modified ext3 would
work the same way as other ext3 module.
Since you are only utilising one of the direct block pointers, it
should not be a problem.

> In step 3 I need to know how to access file system blocks in user level?Is
> there any user level command for it?

"debugfs" which comes with e2fsprogs will help you to some extent. But
since you have modified the file layout you may need to modify it too
to make it work 100% for you.




>
> Please have a look at my queries.I'll be highly obliged.
>
> Thanx and regards,
> Veda
>



-- 
Thanks & Regards,
********************************************
Manish Katiyar ( http://mkatiyar.googlepages.com )
3rd Floor, Fair Winds Block
EGL Software Park
Off Intermediate Ring Road
Bangalore 560071, India
***********************************************

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux