* NILFS2 in GRUB with blocksize=1024
@ 2012-04-25 19:12 Vladimir 'φ-coder/phcoder' Serbinenko
2012-04-26 0:36 ` Vladimir 'φ-coder/phcoder' Serbinenko
0 siblings, 1 reply; 4+ messages in thread
From: Vladimir 'φ-coder/phcoder' Serbinenko @ 2012-04-25 19:12 UTC (permalink / raw)
To: Jiro SEKIBA, The development of GRUB 2
[-- Attachment #1.1: Type: text/plain, Size: 1099 bytes --]
Hello, with the attached script grub-fstest fails completely with
blocksize=1024 and partially with 2048. Do you have any idea why? I
tried to debug and my finding is that grub_nilfs2_read_checkpoint reads
garbage. pptr makes sense but it points inside a file instead of to the
metadata. If I load the other superblock I'm able to read empty disk
(what's there before script starts putting files). The function calls
follow as:
grub_nilfs2_mount
grub_nilfs2_load_sb
grub_nilfs2_read_last_checkpoint
grub_nilfs2_read_checkpoint
grub_nilfs2_bmap_lookup
grub_nilfs2_direct_lookup
grub_nilfs2_dat_translate
grub_nilfs2_bmap_lookup
grub_nilfs2_btree_lookup
grub_nilfs2_btree_node_lookup
grub_nilfs2_btree_node_lookup
grub_nilfs2_btree_node_lookup
<---here it's already wrong--->
grub_nilfs2_read_inode
grub_nilfs2_bmap_lookup
grub_nilfs2_direct_lookup
grub_nilfs2_dat_translate
grub_nilfs2_bmap_lookup
grub_nilfs2_btree_lookup
grub_nilfs2_btree_node_lookup
grub_nilfs2_btree_node_lookup
grub_nilfs2_btree_node_lookup
--
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
[-- Attachment #1.2: fstest.sh --]
[-- Type: application/x-shellscript, Size: 39977 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 294 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: NILFS2 in GRUB with blocksize=1024
2012-04-25 19:12 NILFS2 in GRUB with blocksize=1024 Vladimir 'φ-coder/phcoder' Serbinenko
@ 2012-04-26 0:36 ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-04-26 9:19 ` Vladimir 'φ-coder/phcoder' Serbinenko
0 siblings, 1 reply; 4+ messages in thread
From: Vladimir 'φ-coder/phcoder' Serbinenko @ 2012-04-26 0:36 UTC (permalink / raw)
To: Jiro SEKIBA, The development of GRUB 2
[-- Attachment #1: Type: text/plain, Size: 2082 bytes --]
On 25.04.2012 21:12, Vladimir 'φ-coder/phcoder' Serbinenko wrote:
> Hello, with the attached script grub-fstest fails completely with
> blocksize=1024 and partially with 2048. Do you have any idea why? I
> tried to debug and my finding is that grub_nilfs2_read_checkpoint reads
> garbage. pptr makes sense but it points inside a file instead of to the
> metadata. If I load the other superblock I'm able to read empty disk
> (what's there before script starts putting files).
Easier way to reproduce and log:
~/compile/nilfs$ qemu-img create 1.img 500M
Formatting '1.img', fmt=raw size=524288000
~/compile/nilfs$ mkfs.nilfs2 -b 1024 1.img
mkfs.nilfs2 (nilfs-utils 2.1.0)
Start writing file system initial data to the device
Blocksize:1024 Device:1.img Device Size:524288000
File system initialization succeeded !!
~/compile/nilfs$ sudo mount 1.img /mnt/1/ -o loop
mount.nilfs2: cannot modify /etc/mtab.
Please remount the partition with -f option after making /etc/mtab writable.
nilfs_cleanerd not started
~/compile/nilfs$ ./grub-fstest ./1.img ls -- -l
Device loop0: Filesystem type nilfs2 - UUID
88cf7708-5700-481c-8039-d05d3fedab13 - Total size 1024000 sectors
Device host: Filesystem type hostfs - Total size 0 sectors
~/compile/nilfs$ sudo dd if=/dev/zero of=/mnt/1/x2 bs=1M count=30
30+0 records in
30+0 records out
31457280 bytes (31 MB) copied, 0.292755 s, 107 MB/s
~/compile/nilfs$ sync
~/compile/nilfs$ ./grub-fstest ./1.img ls -- -l /
31457280 x2
~/compile/nilfs$ sudo dd if=/dev/zero of=/mnt/1/x1 bs=1M count=30
30+0 records in
30+0 records out
31457280 bytes (31 MB) copied, 0.324172 s, 97.0 MB/s
~/compile/nilfs$ sync
~/compile/nilfs$ ./grub-fstest ./1.img ls -- -l /
~/compile/nilfs$ ./grub-fstest ./1.img ls -- -l
Device loop0: Filesystem type nilfs2 - UUID
88cf7708-5700-481c-8039-d05d3fedab13 - Total size 1024000 sectors
Device host: Filesystem type hostfs - Total size 0 sectors
(it reads all-zeros from file as checkpoint descriptor)
--
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 294 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: NILFS2 in GRUB with blocksize=1024
2012-04-26 0:36 ` Vladimir 'φ-coder/phcoder' Serbinenko
@ 2012-04-26 9:19 ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-04-26 10:40 ` Vladimir 'φ-coder/phcoder' Serbinenko
0 siblings, 1 reply; 4+ messages in thread
From: Vladimir 'φ-coder/phcoder' Serbinenko @ 2012-04-26 9:19 UTC (permalink / raw)
To: Jiro SEKIBA, The development of GRUB 2
[-- Attachment #1: Type: text/plain, Size: 672 bytes --]
On 26.04.2012 02:36, Vladimir 'φ-coder/phcoder' Serbinenko wrote:
> On 25.04.2012 21:12, Vladimir 'φ-coder/phcoder' Serbinenko wrote:
>> Hello, with the attached script grub-fstest fails completely with
>> blocksize=1024 and partially with 2048. Do you have any idea why? I
>> tried to debug and my finding is that grub_nilfs2_read_checkpoint reads
>> garbage. pptr makes sense but it points inside a file instead of to the
>> metadata. If I load the other superblock I'm able to read empty disk
>> (what's there before script starts putting files).
Image is available on request (19KiB compressed)
--
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 294 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: NILFS2 in GRUB with blocksize=1024
2012-04-26 9:19 ` Vladimir 'φ-coder/phcoder' Serbinenko
@ 2012-04-26 10:40 ` Vladimir 'φ-coder/phcoder' Serbinenko
0 siblings, 0 replies; 4+ messages in thread
From: Vladimir 'φ-coder/phcoder' Serbinenko @ 2012-04-26 10:40 UTC (permalink / raw)
To: Jiro SEKIBA, The development of GRUB 2
[-- Attachment #1: Type: text/plain, Size: 746 bytes --]
On 26.04.2012 11:19, Vladimir 'φ-coder/phcoder' Serbinenko wrote:
> On 26.04.2012 02:36, Vladimir 'φ-coder/phcoder' Serbinenko wrote:
>> On 25.04.2012 21:12, Vladimir 'φ-coder/phcoder' Serbinenko wrote:
>>> Hello, with the attached script grub-fstest fails completely with
>>> blocksize=1024 and partially with 2048. Do you have any idea why? I
>>> tried to debug and my finding is that grub_nilfs2_read_checkpoint reads
>>> garbage. pptr makes sense but it points inside a file instead of to the
>>> metadata. If I load the other superblock I'm able to read empty disk
>>> (what's there before script starts putting files).
Nailed the problem down. Sorry for the noise.
--
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 294 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-04-26 10:40 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-25 19:12 NILFS2 in GRUB with blocksize=1024 Vladimir 'φ-coder/phcoder' Serbinenko
2012-04-26 0:36 ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-04-26 9:19 ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-04-26 10:40 ` Vladimir 'φ-coder/phcoder' Serbinenko
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.