Re: Creating mkfs for my custom filesystem

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

 



On 03/29/2013 06:48 PM, Sankar P wrote:
> On Fri, Mar 29, 2013 at 3:56 PM, Pranay Srivastava <pranjas@xxxxxxxxx> wrote:
>> ---------- Forwarded message ----------
>> From: Pranay Srivastava <pranjas@xxxxxxxxx>
>> Date: Fri, 29 Mar 2013 15:53:21 +0530
>> Subject: Re: Creating mkfs for my custom filesystem
>> To: Sankar P <sankar.curiosity@xxxxxxxxx>
>>
>>
>>
>> On 3/29/13, Sankar P <sankar.curiosity@xxxxxxxxx> wrote:
>>> Hi,
>>>
>>> I am trying to write a simple filesystem to learn the basics of it.
>>>
>>> I have decided on a simple layout for my filesystem where the first
>>> block will be the super block and   will contain the version
>>> information etc. The second block will contain the list of inodes.
>>> Third block onwards will be data blocks. Each file can grow only up to
>>> a single block size. Thrid block will represent the first file, fourth
>>> block for the second file and so on. Directories will not be
>>> supported.
>>>
>>> Now I want to create a mkfs for my filesystem as mentioned above. But
>>> I am not able to find out how to do the mkfs for my filesystem such
>>> that the generic mkfs utility will understand my filesystem. What APIs
>>> should I be using ?
>>>
>>> Any help is appreciated. Thanks.
>>>
>>> --
>>> Sankar P
>>> http://psankar.blogspot.com
>>>
>>> _______________________________________________
>>> Kernelnewbies mailing list
>>> Kernelnewbies@xxxxxxxxxxxxxxxxx
>>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>>>
>> Hi Sankar,
>>
>> I started with something like that. Although I wrote just a bit more
>> complex but it really is quite simple. If you want you can use this
>> and I'll also like to contribute to it.
>>
>> https://github.com/pranjas/psfs.git
>>
>> Checkout psfs.h and psfs-format.c for complete details. Let me know if
>> you need any help.
>>
> Thank you.
>
> Yours seems a bit complex with support for extents etc. I am planning
> to start as simple as it could be. However, I believe your code will
> help me to find the right APIs I need. I will let you know once I
> publish my code. Your code should be very helpful to me. Thanks.
Howdy Sankar,

I found a simple mkfs's code. Hope it's helpful to you.
     -- https://github.com/mkatiyar/testfs/blob/master/util/mktestfs.c

--
Best,
Madper Xie.
>
> --
> Sankar P
> http://psankar.blogspot.com
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies@xxxxxxxxxxxxxxxxx
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies




[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