All of lore.kernel.org
 help / color / mirror / Atom feed
* How to access "upper" directory of overlayfs programatically
@ 2018-09-12 17:51 Jonathan Busby
  2018-09-12 19:48 ` Amir Goldstein
  0 siblings, 1 reply; 2+ messages in thread
From: Jonathan Busby @ 2018-09-12 17:51 UTC (permalink / raw)
  To: linux-fsdevel

Hello. I'm new to this list and I don't know if this is the right forum 
for my question, but, I've asked this same question on many forums and 
never received an answer -- please don't flame me.

I have a Debian based Linux live system which is running out of RAM and 
was booted without the "persistent" boot option, so the capser-rw 
filesystem was never created.

I wish to gain access to the "upper" directory of the overlayfs 
filesystem in the casper init scripts initramfs "/cow/upper" filesystem 
so that I may programatically save the filesystem, hopefully without 
having to re-implement cp.

I know how to commit the changes of a Debian based live CD session to a 
storage device, but only if the live session in question was booted with 
the "persistent" option.

I've looked at the overlayfs source code but I still can't figure out 
how to accomplish what I want.

I'm sorry if this is  stupid question -- hopefully it's not.

Thank you,

Jonathan

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

* Re: How to access "upper" directory of overlayfs programatically
  2018-09-12 17:51 How to access "upper" directory of overlayfs programatically Jonathan Busby
@ 2018-09-12 19:48 ` Amir Goldstein
  0 siblings, 0 replies; 2+ messages in thread
From: Amir Goldstein @ 2018-09-12 19:48 UTC (permalink / raw)
  To: jdb2; +Cc: overlayfs

[changing over to overlayfs list]

On Wed, Sep 12, 2018 at 8:52 PM Jonathan Busby <jdb2@pobox.com> wrote:
>
> Hello. I'm new to this list and I don't know if this is the right forum
> for my question, but, I've asked this same question on many forums and
> never received an answer -- please don't flame me.
>
> I have a Debian based Linux live system which is running out of RAM and
> was booted without the "persistent" boot option, so the capser-rw
> filesystem was never created.
>
> I wish to gain access to the "upper" directory of the overlayfs
> filesystem in the casper init scripts initramfs "/cow/upper" filesystem
> so that I may programatically save the filesystem, hopefully without
> having to re-implement cp.
>
> I know how to commit the changes of a Debian based live CD session to a
> storage device, but only if the live session in question was booted with
> the "persistent" option.
>
> I've looked at the overlayfs source code but I still can't figure out
> how to accomplish what I want.
>
> I'm sorry if this is  stupid question -- hopefully it's not.
>

I don't think the programmable API you think of exists, but maybe
you can get access to upper dir as admin user.

Please share the init scripts responsible for the mounts at live CD boot
and the content of /proc/self/mountinfo

Thanks,
Amir.

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

end of thread, other threads:[~2018-09-13  0:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-09-12 17:51 How to access "upper" directory of overlayfs programatically Jonathan Busby
2018-09-12 19:48 ` Amir Goldstein

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.