Linux-EROFS Archive on lore.kernel.org
 help / color / Atom feed
* Enhancement request: exclude paths from mkfs.erofs
@ 2019-11-30 19:42 David Michael
  2019-12-01  0:44 ` Gao Xiang via Linux-erofs
  0 siblings, 1 reply; 2+ messages in thread
From: David Michael @ 2019-11-30 19:42 UTC (permalink / raw)
  To: linux-erofs

Hi,

I'd like to request support for excluding paths in mkfs.erofs similar
to the -ef (exclude file) option for mksquashfs.  An option that takes
a file containing a list of paths and glob patterns should be
sufficient.

For a simple use case:  I want to build an EROFS image from a Gentoo
install root, but I don't need development files in it.  An exclude
option would allow generating a smaller image without the unused files
while keeping them in the writable source path so additional packages
could be installed on it later.  This would have /usr/include and
/usr/lib/*.a for some basic entries in its exclude file.

If this isn't something that anyone else is interested in implementing
in the near future, I can try it myself and send a patch after I have
some time to get more familiar with the code.

Thanks.

David

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

* Re: Enhancement request: exclude paths from mkfs.erofs
  2019-11-30 19:42 Enhancement request: exclude paths from mkfs.erofs David Michael
@ 2019-12-01  0:44 ` Gao Xiang via Linux-erofs
  0 siblings, 0 replies; 2+ messages in thread
From: Gao Xiang via Linux-erofs @ 2019-12-01  0:44 UTC (permalink / raw)
  To: David Michael; +Cc: linux-erofs

Hi David,

On Sat, Nov 30, 2019 at 02:42:37PM -0500, David Michael wrote:
> Hi,
> 
> I'd like to request support for excluding paths in mkfs.erofs similar
> to the -ef (exclude file) option for mksquashfs.  An option that takes
> a file containing a list of paths and glob patterns should be
> sufficient.
> 
> For a simple use case:  I want to build an EROFS image from a Gentoo
> install root, but I don't need development files in it.  An exclude
> option would allow generating a smaller image without the unused files
> while keeping them in the writable source path so additional packages
> could be installed on it later.  This would have /usr/include and
> /usr/lib/*.a for some basic entries in its exclude file.
> 
> If this isn't something that anyone else is interested in implementing
> in the near future, I can try it myself and send a patch after I have
> some time to get more familiar with the code.

That is a useful feature, and I was also thinking that "-pf PSEUDO_FILE"
is useful since root is still needed for device files now...

I have to admit that squashfs has many exist users (thus many exist
developers), but I think in the long term EROFS should perform much better
due to our overall project positioning, ondisk format / runtime advantages
and active community due to paid job maintainers on this as well and open
mind to all new useful features.

For me, now I am busying in XZ algorithm (although there are other random
intra-company exams recently killing much of my time). I have to implement
it to prepare wider scenarios. This is the first priority thing of EROFS.

Cc Guifu. I'm not sure currently he has some extra time working on this.
If some chance, we are very happy that more experienced experts could
join us as well to build a real powerful ROFS solution together.

Files can be simply filtered in the function erofs_mkfs_build_tree.
Any improvements (no matter big or small) are greatly welcomed. :-)

Thanks,
Gao Xiang

> 
> Thanks.
> 
> David

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

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-30 19:42 Enhancement request: exclude paths from mkfs.erofs David Michael
2019-12-01  0:44 ` Gao Xiang via Linux-erofs

Linux-EROFS Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-erofs/0 linux-erofs/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-erofs linux-erofs/ https://lore.kernel.org/linux-erofs \
		linux-erofs@lists.ozlabs.org linux-erofs@ozlabs.org
	public-inbox-index linux-erofs

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.ozlabs.lists.linux-erofs


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git