ericwinn / cloudxy

Automatically exported from code.google.com/p/cloudxy
0 stars 0 forks source link

HLFS Clone operation has a bug #28

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. svn checkout 
http://cloudxy.googlecode.com/svn/branches/hlfs/person/harry/hlfs  hlfs 
2. cd hlfs/build;
3. cmake ../src/;
4, make all;
5, cd ../src/tools/;
6, ./mkfs.hlfs -u local:///tmp/testenv/testfs -b 8192 -s 67108864 -m 1024
7, ./mkfs.hlfs -u local:///tmp/testenv/testfs1 -b 8192 -s 67108864 -m 10240
8, ./snapshot.hlfs -u local:///tmp/testenv/testfs -s snapshot1
9, ./clone.hlfs -f local:///tmp/testenv/testfs%snapshot1 -s 
local:///tmp/testenv/testfs1

What is the expected output? What do you see instead?
Expected output:
$ cat /tmp/testenv/testfs1/superblock 

[METADATA]
uri=local:///tmp/testenv/testfs1
block_size=8192
segment_size=67108864
max_fs_size=1024
is_compress=0
from_segno=0
father_uri=local:///tmp/testenv/testfs
father_ss=snapshot1
snapshot_inode=0

See instead:

$ cat /tmp/testenv/testfs1/superblock 

[METADATA]
uri=local:///tmp/testenv/testfs1
block_size=8192
segment_size=67108864
max_fs_size=1024
is_compress=0
from_segno=13803037682521079809
father_uri=local:///tmp/testenv/testfs
father_ss=snapshot1
snapshot_inode=0

NOTE: See from_segno option for their differences.

Original issue reported on code.google.com by harryxi...@gmail.com on 23 Jan 2013 at 11:49

GoogleCodeExporter commented 9 years ago
There are no segment files at this time

Original comment by harryxi...@gmail.com on 23 Jan 2013 at 11:58

GoogleCodeExporter commented 9 years ago
Expected output should be:
Expected output:
$ cat /tmp/testenv/testfs1/superblock 

[METADATA]
uri=local:///tmp/testenv/testfs1
block_size=8192
segment_size=67108864
max_fs_size=1024
is_compress=0
from_segno=1
father_uri=local:///tmp/testenv/testfs
father_ss=snapshot1
snapshot_inode=0

NOTE: 0.seg is used by base device, so first one is 1.

Original comment by harryxi...@gmail.com on 24 Jan 2013 at 10:41

GoogleCodeExporter commented 9 years ago

Original comment by kanghua...@gmail.com on 9 Feb 2013 at 6:25