linux-f2fs-devel.lists.sourceforge.net archive mirror
 help / color / mirror / Atom feed
* [f2fs-dev] Populate f2fs with files during mkfs.f2fs
@ 2022-03-19 12:55 Tomas Mudrunka
  2022-03-21  6:03 ` Chao Yu
  0 siblings, 1 reply; 5+ messages in thread
From: Tomas Mudrunka @ 2022-03-19 12:55 UTC (permalink / raw)
  To: linux-f2fs-devel

Hello,
i've noticed that mkfs.f2fs does not allow files to be copied to 
filesystem during formating by mkfs.f2fs.
Do you think it would be hard to add such feature?

I understand that this might be a weird request which in some sense 
defies the definition of filesystem formating process. But there are 
also some arguments for this case.

In the world of embedded development we often need to build firmware 
images to be flashed into the device. And F2FS is one of the best suited 
filesystems for embedded and perhaps the one best for managed flash. So 
we naturaly want to use it and build into our fw images. However to 
build such image i need to create f2fs image, format it and then mount 
it using loopback, copy data to it, unmount, sync, handle errors, etc... 
And we have huge makefiles or stuff like genimage, to put all the image 
partitions and bootloaders and everything together. It just adds quite 
complexity to the embedded build systems.

Turns out that quite few filesystems already have this feature to 
simplify creating filesystem images without need for mounting or root 
permissions:

mkfs.ext4 -d ./input_directory
mkfs.ubifs -d ./input_directory
mkfs.jffs2 -d ./input_directory
mkcramfs (obviously)
mksquashfs (obviously)

would you please consider adding such feature as well?

Thank you

-- 
S pozdravem
Best regards
      Tomáš Mudruňka - SPOJE.NET s.r.o.


_______________________________________________
Linux-f2fs-devel mailing list
Linux-f2fs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [f2fs-dev] Populate f2fs with files during mkfs.f2fs
  2022-03-19 12:55 [f2fs-dev] Populate f2fs with files during mkfs.f2fs Tomas Mudrunka
@ 2022-03-21  6:03 ` Chao Yu
  2022-03-21  7:59   ` Tomas Mudrunka
  2022-03-25 16:02   ` [f2fs-dev] F2FS support in genimage Tomas Mudrunka
  0 siblings, 2 replies; 5+ messages in thread
From: Chao Yu @ 2022-03-21  6:03 UTC (permalink / raw)
  To: Tomas Mudrunka, linux-f2fs-devel

On 2022/3/19 20:55, Tomas Mudrunka wrote:
> Hello,
> i've noticed that mkfs.f2fs does not allow files to be copied to
> filesystem during formating by mkfs.f2fs.
> Do you think it would be hard to add such feature?
> 
> I understand that this might be a weird request which in some sense
> defies the definition of filesystem formating process. But there are
> also some arguments for this case.
> 
> In the world of embedded development we often need to build firmware
> images to be flashed into the device. And F2FS is one of the best suited
> filesystems for embedded and perhaps the one best for managed flash. So
> we naturaly want to use it and build into our fw images. However to
> build such image i need to create f2fs image, format it and then mount
> it using loopback, copy data to it, unmount, sync, handle errors, etc...
> And we have huge makefiles or stuff like genimage, to put all the image
> partitions and bootloaders and everything together. It just adds quite
> complexity to the embedded build systems.
> 
> Turns out that quite few filesystems already have this feature to
> simplify creating filesystem images without need for mounting or root
> permissions:
> 
> mkfs.ext4 -d ./input_directory
> mkfs.ubifs -d ./input_directory
> mkfs.jffs2 -d ./input_directory
> mkcramfs (obviously)
> mksquashfs (obviously)
> 
> would you please consider adding such feature as well?

Hi Tomas,

Can sload.f2fs satisfy this requirement?

Thanks,

> 
> Thank you
> 


_______________________________________________
Linux-f2fs-devel mailing list
Linux-f2fs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [f2fs-dev] Populate f2fs with files during mkfs.f2fs
  2022-03-21  6:03 ` Chao Yu
@ 2022-03-21  7:59   ` Tomas Mudrunka
  2022-03-25 16:02   ` [f2fs-dev] F2FS support in genimage Tomas Mudrunka
  1 sibling, 0 replies; 5+ messages in thread
From: Tomas Mudrunka @ 2022-03-21  7:59 UTC (permalink / raw)
  To: linux-f2fs-devel

Dne 2022-03-21 07:03, Chao Yu napsal:
> On 2022/3/19 20:55, Tomas Mudrunka wrote:
>> Hello,
>> i've noticed that mkfs.f2fs does not allow files to be copied to
>> filesystem during formating by mkfs.f2fs.
>> Do you think it would be hard to add such feature?
>> 
>> I understand that this might be a weird request which in some sense
>> defies the definition of filesystem formating process. But there are
>> also some arguments for this case.
>> 
>> In the world of embedded development we often need to build firmware
>> images to be flashed into the device. And F2FS is one of the best 
>> suited
>> filesystems for embedded and perhaps the one best for managed flash. 
>> So
>> we naturaly want to use it and build into our fw images. However to
>> build such image i need to create f2fs image, format it and then mount
>> it using loopback, copy data to it, unmount, sync, handle errors, 
>> etc...
>> And we have huge makefiles or stuff like genimage, to put all the 
>> image
>> partitions and bootloaders and everything together. It just adds quite
>> complexity to the embedded build systems.
>> 
>> Turns out that quite few filesystems already have this feature to
>> simplify creating filesystem images without need for mounting or root
>> permissions:
>> 
>> mkfs.ext4 -d ./input_directory
>> mkfs.ubifs -d ./input_directory
>> mkfs.jffs2 -d ./input_directory
>> mkcramfs (obviously)
>> mksquashfs (obviously)
>> 
>> would you please consider adding such feature as well?
> 
> Hi Tomas,
> 
> Can sload.f2fs satisfy this requirement?

Yes, that is exactly what i needed.
I didn't realized i can find it in separate tool.

Thank you.

-- 
S pozdravem
Best regards
      Tomáš Mudruňka - SPOJE.NET s.r.o.


_______________________________________________
Linux-f2fs-devel mailing list
Linux-f2fs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [f2fs-dev] F2FS support in genimage
  2022-03-21  6:03 ` Chao Yu
  2022-03-21  7:59   ` Tomas Mudrunka
@ 2022-03-25 16:02   ` Tomas Mudrunka
  2022-03-28  3:25     ` Chao Yu
  1 sibling, 1 reply; 5+ messages in thread
From: Tomas Mudrunka @ 2022-03-25 16:02 UTC (permalink / raw)
  To: Chao Yu; +Cc: linux-f2fs-devel

Dne 2022-03-21 07:03, Chao Yu napsal:
> Hi Tomas,
> Can sload.f2fs satisfy this requirement?
> Thanks,

BTW it worked, so we've already added F2FS support to genimage:

https://github.com/pengutronix/genimage/pull/185
https://github.com/pengutronix/genimage/

Someone might find that helpful

Cheers


-- 
S pozdravem
Best regards
      Tomáš Mudruňka


_______________________________________________
Linux-f2fs-devel mailing list
Linux-f2fs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [f2fs-dev] F2FS support in genimage
  2022-03-25 16:02   ` [f2fs-dev] F2FS support in genimage Tomas Mudrunka
@ 2022-03-28  3:25     ` Chao Yu
  0 siblings, 0 replies; 5+ messages in thread
From: Chao Yu @ 2022-03-28  3:25 UTC (permalink / raw)
  To: Tomas Mudrunka; +Cc: linux-f2fs-devel

On 2022/3/26 0:02, Tomas Mudrunka wrote:
> Dne 2022-03-21 07:03, Chao Yu napsal:
>> Hi Tomas,
>> Can sload.f2fs satisfy this requirement?
>> Thanks,
> 
> BTW it worked, so we've already added F2FS support to genimage:
> 
> https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fpengutronix%2Fgenimage%2Fpull%2F185&data=04%7C01%7Cchao.yu%40oppo.com%7C4c4542946f1847d929e108da0e78ef11%7Cf1905eb1c35341c5951662b4a54b5ee6%7C0%7C0%7C637838210787573814%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=Or%2Bt4bFIjSXQJFY9cpmo%2BxolyvMwsR3ymW%2B2BcVJeyk%3D&reserved=0
> https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fpengutronix%2Fgenimage%2F&data=04%7C01%7Cchao.yu%40oppo.com%7C4c4542946f1847d929e108da0e78ef11%7Cf1905eb1c35341c5951662b4a54b5ee6%7C0%7C0%7C637838210787573814%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=suJsCc9%2BfDM66JUFC4GhPSORMBxkuYWCvX8Jw4dQuME%3D&reserved=0
> 
> Someone might find that helpful

Thanks for the work. :)

Thanks,

> 
> Cheers
> 
> 


_______________________________________________
Linux-f2fs-devel mailing list
Linux-f2fs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-03-28  3:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-19 12:55 [f2fs-dev] Populate f2fs with files during mkfs.f2fs Tomas Mudrunka
2022-03-21  6:03 ` Chao Yu
2022-03-21  7:59   ` Tomas Mudrunka
2022-03-25 16:02   ` [f2fs-dev] F2FS support in genimage Tomas Mudrunka
2022-03-28  3:25     ` Chao Yu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).