Public bug reported:

Hello
I am trying to understand how the three commands testb, icheck and ncheck of 
the debugfs command work.
My goal is to use them to find all the sectors allocated to a file.
For this, I created a test set consisting of a 100% full EXT4 partition 
containing only one file.
Here are the features:

mount /dev/sda9 /mnt/TEST
df --block-size=512 -text4 | grep TEST
/dev/sda9                42456    41392          0 100% /mnt/TEST
 
So I think there are only 1064 (42456-41392) unused sectors. To check it, I 
make this script:
rm -v testb.in
for ((k=1;k<42457;k++));do
echo   testb $k >>testb.in
done
debugfs -f testb.in /dev/sda9 > testb.out 2>err

then I control
head -2 testb.out; tail -2 testb.out ; head -2 err; tail -1 err
debugfs: testb 1
Block 1 marked in use
debugfs: testb 42456
Block 42456 not in use
debugfs 1.46.5 (30-Dec-2021)
Illegal block number passed to ext2fs_test_block_bitmap #6656 for block bitmap 
for /dev/sda9
Illegal block number passed to ext2fs_test_block_bitmap #42456 for block bitmap 
for /dev/sda9


I can only find this reported incident:  
https://bugs.launchpad.net/ubuntu/+source/e2fsprogs/+bug/1487787


grep "Illegal block number passed to ext2fs_test_block_bitmap" err | wc -l
35801

i.e. 84% rejection. The rest of the treatment will not be good

grep "marked in use" testb.out | wc -l
6522

grep "not in use" testb.out | wc -l
35934
 
I don't know if it's because of a missing option, misuse or malfunction of the 
command.

thank you for looking into the problem.

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: evince 42.3-0ubuntu2
ProcVersionSignature: Ubuntu 5.15.0-58.64-generic 5.15.74
Uname: Linux 5.15.0-58-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
ApportVersion: 2.20.11-0ubuntu82.3
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: ubuntu:GNOME
Date: Sun Jan 22 16:18:03 2023
InstallationDate: Installed on 2022-02-16 (339 days ago)
InstallationMedia: Ubuntu 20.04.3 LTS "Focal Fossa" - Release amd64 (20210819)
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=fr_FR.UTF-8
 SHELL=/bin/bash
SourcePackage: evince
UpgradeStatus: Upgraded to jammy on 2022-08-19 (156 days ago)

** Affects: evince (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug jammy wayland-session

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to evince in Ubuntu.
https://bugs.launchpad.net/bugs/2003649

Title:
  Illegal block number passed to ext2fs_test_block_bitmap

Status in evince package in Ubuntu:
  New

Bug description:
  Hello
  I am trying to understand how the three commands testb, icheck and ncheck of 
the debugfs command work.
  My goal is to use them to find all the sectors allocated to a file.
  For this, I created a test set consisting of a 100% full EXT4 partition 
containing only one file.
  Here are the features:

  mount /dev/sda9 /mnt/TEST
  df --block-size=512 -text4 | grep TEST
  /dev/sda9                42456    41392          0 100% /mnt/TEST
   
  So I think there are only 1064 (42456-41392) unused sectors. To check it, I 
make this script:
  rm -v testb.in
  for ((k=1;k<42457;k++));do
  echo   testb $k >>testb.in
  done
  debugfs -f testb.in /dev/sda9 > testb.out 2>err

  then I control
  head -2 testb.out; tail -2 testb.out ; head -2 err; tail -1 err
  debugfs: testb 1
  Block 1 marked in use
  debugfs: testb 42456
  Block 42456 not in use
  debugfs 1.46.5 (30-Dec-2021)
  Illegal block number passed to ext2fs_test_block_bitmap #6656 for block 
bitmap for /dev/sda9
  Illegal block number passed to ext2fs_test_block_bitmap #42456 for block 
bitmap for /dev/sda9

  
  I can only find this reported incident:  
https://bugs.launchpad.net/ubuntu/+source/e2fsprogs/+bug/1487787

  
  grep "Illegal block number passed to ext2fs_test_block_bitmap" err | wc -l
  35801

  i.e. 84% rejection. The rest of the treatment will not be good

  grep "marked in use" testb.out | wc -l
  6522

  grep "not in use" testb.out | wc -l
  35934
   
  I don't know if it's because of a missing option, misuse or malfunction of 
the command.

  thank you for looking into the problem.

  ProblemType: Bug
  DistroRelease: Ubuntu 22.04
  Package: evince 42.3-0ubuntu2
  ProcVersionSignature: Ubuntu 5.15.0-58.64-generic 5.15.74
  Uname: Linux 5.15.0-58-generic x86_64
  NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
  ApportVersion: 2.20.11-0ubuntu82.3
  Architecture: amd64
  CasperMD5CheckResult: unknown
  CurrentDesktop: ubuntu:GNOME
  Date: Sun Jan 22 16:18:03 2023
  InstallationDate: Installed on 2022-02-16 (339 days ago)
  InstallationMedia: Ubuntu 20.04.3 LTS "Focal Fossa" - Release amd64 (20210819)
  ProcEnviron:
   TERM=xterm-256color
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=<set>
   LANG=fr_FR.UTF-8
   SHELL=/bin/bash
  SourcePackage: evince
  UpgradeStatus: Upgraded to jammy on 2022-08-19 (156 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/evince/+bug/2003649/+subscriptions


-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to