Comments (6)
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.
Did you try lklfuse?
from linux.
@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.
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.
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.
@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)
- Start kernel in single threaded mode HOT 1
- Asking for a port to arm64 of "Unifying LKL into UML"
- How to switch between different kernel versions? HOT 1
- IWL-WiFi + FreeBSD
- Compilation under different kernel versions HOT 1
- Status of `Unifying LKL into UML` (v8, Jan 2021) ? HOT 6
- Investigate LKL strncpy and KASAN error
- LKL build target clean-conf doesn't clean .config
- Unable to mount btrfs filesystems spread across more than one partition with lklfuse HOT 4
- Ask for android build related help HOT 2
- LKL is potentially affected by 10 known CVEs HOT 3
- http benchmarking isn't working well
- network performance
- Failed to run lkl hijack on android 10 HOT 6
- can lkl based app run on vm HOT 4
- Interested in participating, cannot join mailing list or slack HOT 2
- split some tools out from the main Linux repo HOT 2
- drop tools/lkl/bin binaries HOT 1
- Updates about Unifying LKL into UML? HOT 1
- allow builds with CONFIG_NET disabled
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from linux.