https://bugzilla.kernel.org/show_bug.cgi?id=200871
--- Comment #10 from Chao Yu (c...@kernel.org) --- (In reply to Stathis Maneas from comment #7) > Please find attached the required files to reproduce the error. Start with > the Makefile to compile and install the module into your kernel. > > Assuming the underlying device is /dev/vdb, please execute the following > commands to initialize the file system: > $ dd if=/dev/zero of=/dev/vdb bs=4096 > $ mkfs.f2fs -l F2FS /dev/vdb -d 10 -a 0 -O extra_attr -O inode_checksum > $ mount -t f2fs /dev/vdb /mnt/f2fs -o background_gc=off > $ cd /mnt/f2fs > $ dd if=/dev/urandom of=inline_file bs=3400 count=1 > $ cd; umount /mnt/f2fs > > In order to reproduce the error, we need two pieces of information: > - The device's number of sectors (invoking fdisk -l should be more than > sufficient to extract this information). In my case, this number is equal to > 262,144. > - The block number (on disk) that will accommodate the newly updated inode > (after its mode has changed). In my case, this block number is equal to 4609. > > Then, please execute the following commands to reproduce the error: > $ sudo dmsetup create f2fs_dev --table '0 262144 injector /dev/vdb 0 W4609' > --readahead none > $ dmesg -C; dmsetup message f2fs_dev 0 start > $ sudo mount -t f2fs /dev/mapper/f2fs_dev /mnt/f2fs -o background_gc=off > $ cd /mnt/f2fs/ > $ /tmp/run_chmod inline_file > The operation "chmod" returned: 0 (errno: 0) > > (Comment: During the execution of this command, the write operation that is > related to the newly updated inode (BlockID: 4609) is failed.) I tried this testcase, but I can't reproduce this bug. Look into this, the problem here is, f2fs always triggers out-place-update for meta data including inode block, so any update in inode of inline_file, f2fs should not write to (BlockID: 4609) directly, so how inline_file becomes corrupted? -- You are receiving this mail because: You are watching the assignee of the bug. _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel