Comments (2)
Hey @fact0real - thanks for submitting an issue 🎉
Could you provide a few steps to reproduce?
Are you using more than one .png
image in your filesystem?
from albumfs.
Hey
first of all update the git repo:
$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux testing (buster)
Release: testing
Codename: buster
$ git pull
Already up to date.
$ make
gcc -Wall -D_FILE_OFFSET_BITS=8 -c afspng.c -o afspng.o
gcc afspng.o albumfs.c -Wall -D_FILE_OFFSET_BITS=8 `pkg-config fuse --cflags --libs` -lpng -lm -lssl -lcrypto -o albumfs
<command-line>:0:0: warning: "_FILE_OFFSET_BITS" redefined
<command-line>:0:0: note: this is the location of the previous definition
rm afspng.o
$ sudo make install
cp albumfs /usr/bin
gzip < albumfs.1 > albumfs.1.gz
mkdir -p /usr/local/share/man/man1
mv albumfs.1.gz /usr/local/share/man/man1/albumfs.1.gz
Then I have provided three png
image and use -format
option:
$ ls image
./ ../ 800px-Dyson_Bubble.png Auto_Racing_Chequered.png sample_6.png
$ albumfs -format image/sample_6.png
Enter drive name:
test
Enter encryption key for test.afs:
1234test
#### New Filesystem ####
Name : test.afs
PNG Count : 2
Capacity : 0.36 MB
Consumed : 0.00 MB
test.afs mounted.
AlbumFS will continue to run in the foreground.
Use Ctrl+C to safely unmount the filesystem.
In the another tab, create sample small text file and:
$ echo -n 'this is just for test' > test.afs/test.txt
$ md5sum test.afs/test.txt
f8b57f2ff96a87c2a375f808dc2fc965 test.afs/test.txt
and the return to the previous tab and hit Ctrl + C
.
^C
Safely unmounted test.afs, goodbye!
Now when I want to mount the file system:
$ albumfs -mount image/sample_6.png
Enter drive name:
test
Enter encryption key for test.afs:
1234test
Found filesystem test.afs [19.00/360000.00] 1 files in 2 images
test.afs mounted.
AlbumFS will continue to run in the foreground.
Use Ctrl+C to safely unmount the filesystem.
But the mounted file system have wrong test.txt file, coz:
$ md5sum test.afs/test.txt
4c71ffba0dc127dec6da13f657a54698 test.afs/test.txt
this is my problem.
from albumfs.
Related Issues (9)
- Cannot set time of file with touch command HOT 1
- Replace Empty Space with Seeded Noise
- Application crashes with segfault when mounting the drive.
- Cannot write into file with echo or nano HOT 1
- Segmentation Fault when formatting new drive with only 2 PNGs HOT 1
- Directory Support
- Add dependency wiki data for distros HOT 2
- Docker HOT 1
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 albumfs.