On 26 May 2023, at 16:23, James Puderer via lists.yoctoproject.org 
<jpuderer=littlebox...@lists.yoctoproject.org> wrote:
> 
> Hello all,
> 
> I'm trying to figure out how to set the `nodatacow` flag on a directory in a 
> BTRFS image at build time.  Normally this is done by running 'chattr +c 
> <dir>'.  Unfortunately, this doesn't seem to be something supported by 
> fakeroot/pseudo.  I would really like to avoid doing it at runtime, or 
> mounting the filesystem in loopback mode (requires root).
> 
> This seems like something that Yocto *should* be able to do.  Am I missing 
> something?  If not, what would be the correct place to implement something 
> like this?

When and how are you trying to do this?  If it’s at rootfs time then the rootfs 
isn’t yet in the target btrfs format but simply a directory on in your build 
tree, and you’ll need to test that the attrs survive the transition from a 
directory to a btrfs image.

Ross
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#60179): https://lists.yoctoproject.org/g/yocto/message/60179
Mute This Topic: https://lists.yoctoproject.org/mt/99151943/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: 
https://lists.yoctoproject.org/g/yocto/leave/6691583/21656/737036229/xyzzy 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to