Giter VIP home page Giter VIP logo

Comments (6)

 avatar commented on September 15, 2024 1

Closing this issue as the use-case described here can be solve using lklfuse and we have #201 to cover the more general case.

from linux.

 avatar commented on September 15, 2024

Did you try lklfuse?

from linux.

pscollins avatar pscollins commented on September 15, 2024

@wrouesnel The trick is figuring out when you want open(2) calls to be forwarded to the host filesystem and when you want them to go inside LKL, since you only have a path (sometimes absolute, sometimes relative) to work with. I suspect hijacking all open calls would end up breaking a lot of programs out of the box, or make them behave unexpectedly (e.g. your logs would end up being written to the LKL filesystem rather than the host system).

from linux.

wrouesnel avatar wrouesnel commented on September 15, 2024

Well I'm specifically wanting to untar an FS backup into a filesystem image, but was looking to mostly preserve tar's syntax (i.e. not just rewrite tar).

But a little exploration does make it seem like it'd be easier to just do some find/replacing in tar's source tree rather then reverse engineering it's syscall's just now - you definitely run into trouble when you need to distinguish interesting host device paths from filesystem paths.

from linux.

thehajime avatar thehajime commented on September 15, 2024

I've been working on musl libc support for arch lkl in my local repo. Though it's still not done yet but let you know once it gets the shape.

With that I believe it makes sense a lot.

from linux.

 avatar commented on September 15, 2024

@wrouesnel I believe it is easier to just create a wrapper script on top on lklfuse:

lklfuse fsimage /mnt/dir
tar xf file.tar /mnt/dir
fuseumount -f /mnt/dir

from linux.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.