Launchpad has imported 1 comments from the remote bug at
https://bugzilla.kernel.org/show_bug.cgi?id=218571.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.

------------------------------------------------------------------------
On 2024-03-07T13:11:58+00:00 colin.i.king wrote:

Summary:

create hfs file system, loop-back mount it, run iomix stessor with
stress-ng to exercise with a mix of file I/O operations and remove files
at end. File system is empty but a lot of blocks are used and can't seem
to be recovered.

Kernel: 6.8.0-11-generic

test case:
sudo apt-get install hfsprogs

dd if=/dev/zero of=fs.img bs=1M count=2048
mkfs.hfs fs.img
sudo mount fs.img /mnt
sudo mkdir /mnt/x
df /mnt
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/loop6 2097128 2015 2095113 1% /mnt

sudo stress-ng --temp-path /mnt/x --iomix 1 -t 2

df /mnt
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/loop6 2097128 674635 1422493 33% /mnt

ls -alR /mnt/
/mnt/:
total 4
drwxr-xr-x 1 root root 3 Mar 7 12:37 .
drwxr-xr-x 23 root root 4096 Feb 28 14:13 ..
drwxr-xr-x 1 root root 2 Mar 7 12:37 x

/mnt/x:
total 0
drwxr-xr-x 1 root root 2 Mar 7 12:37 .
drwxr-xr-x 1 root root 3 Mar 7 12:37 ..

..so file system is 33% full, but no files are on the file system.
Something looks wrong here.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2056448/comments/1


** Changed in: linux
       Status: Unknown => Confirmed

** Changed in: linux
   Importance: Unknown => Medium

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

Title:
  hfs: weird file system free block state after creating files and
  removing them with a mix of i/o operations

Status in Linux:
  Confirmed
Status in linux package in Ubuntu:
  New

Bug description:
  Summary:

  create hfs file system, loop-back mount it, run iomix stessor with
  stress-ng to exercise with a mix of file I/O operations and remove
  files at end. File system is empty but a lot of blocks are used and
  can't seem to be recovered.

  Kernel: 6.8.0-11-generic

  test case:
  sudo apt-get install hfsprogs

  dd if=/dev/zero of=fs.img bs=1M count=2048
  mkfs.hfs fs.img 
  sudo mount fs.img /mnt
  sudo mkdir /mnt/x
  df /mnt
  Filesystem     1K-blocks  Used Available Use% Mounted on
  /dev/loop6       2097128  2015   2095113   1% /mnt

  
  sudo stress-ng --temp-path /mnt/x --iomix 1 -t 2

  df /mnt
  Filesystem     1K-blocks   Used Available Use% Mounted on
  /dev/loop6       2097128 674635   1422493  33% /mnt

  
  ls -alR /mnt/
  /mnt/:
  total 4
  drwxr-xr-x  1 root root    3 Mar  7 12:37 .
  drwxr-xr-x 23 root root 4096 Feb 28 14:13 ..
  drwxr-xr-x  1 root root    2 Mar  7 12:37 x

  /mnt/x:
  total 0
  drwxr-xr-x 1 root root 2 Mar  7 12:37 .
  drwxr-xr-x 1 root root 3 Mar  7 12:37 ..

  
  ..so file system is 33% full, but no files are on the file system. Something 
looks wrong here.

To manage notifications about this bug go to:
https://bugs.launchpad.net/linux/+bug/2056448/+subscriptions


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

Reply via email to