[SRU] fsattr fails to run
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
fstransform (Debian) |
New
|
Unknown
|
||||
fstransform (Ubuntu) | Status tracked in Oracular | |||||
Focal |
Confirmed
|
Undecided
|
Unassigned | |||
Jammy |
Confirmed
|
Undecided
|
Unassigned | |||
Mantic |
Confirmed
|
Undecided
|
Unassigned | |||
Noble |
Confirmed
|
Undecided
|
Unassigned | |||
Oracular |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[ Impact ]
fsattr will crash immediately on execution with the error:
$ fsattr
ERROR: fsattr: this program is a NOT functional because it was compiled without -lext2fs -lcom_err
[ Test Plan ]
test with a loop device:
dd if=/dev/zero of=./test_disk bs=1K count=1000
sudo losetup -f test_disk
check which loop device has been used:
sudo losetup -l
In my test it was /dev/loop11
sudo mkfs.ext4 /dev/loop11
sudo fsattr --files=prealloc --fstype=ext4 /dev/loop11
If the package is not fixed it will result in the above error.
With the fixed package it will not fail.
Another testplan to confirm "fsremap" is still working after the change.
sudo dd if=/dev/zero of=./test_disk bs=1K count=100000
mkdir test_mnt
sudo mkfs.ext4 test_disk
sudo mount test_disk test_mnt -o loop
# create a ramdom test file
sudo dd if=/dev/random of=test_mnt/file1 bs=1K count=1
sudo dd if=/dev/zero of=test_mnt/loop
sudo mkfs.ext4 test_mnt/loop
mkdir test_mnt_loop
sudo mount test_mnt/loop test_mnt_loop -o loop
# create another random test file inside the loop file in the device
sudo dd if=/dev/random of=test_
sudo fsmove test_mnt test_mnt_loop --exclude test_mnt/loop
sudo umount test_mnt_loop
sudo dd if=/dev/zero of=test_mnt/zero bs=512
sudo mount -o ro,remount test_mnt
mkdir log
sudo fsremap -vv -t log /dev/loop11 test_mnt/loop test_mnt/zero
cat log/fstransform
Use the last command to check the log and confirm "fsremap" has worked.
Also, try the following:
sudo mount test_disk test_mnt -o loop
ls test_mnt
It will now have both the random test files.
[ Where problems could occur ]
There is no change in the code, it only changes a build dependency which will make fsattr functional.
[ Other Info ]
Since "fsattr" has never worked before, so there can be problems and new bugs reported for it.
[ Original Bug Description ]
fsattr fails to run with the error:
$ fsattr
ERROR: fsattr: this program is a NOT functional because it was compiled without -lext2fs -lcom_err
ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: fstransform 0.9.4-1build1
ProcVersionSign
Uname: Linux 6.8.0-22-generic x86_64
ApportVersion: 2.28.0-0ubuntu1
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: ubuntu:GNOME
Date: Tue Apr 9 22:12:33 2024
InstallationDate: Installed on 2024-04-08 (1 days ago)
InstallationMedia: Ubuntu 24.04 LTS "Noble Numbat" - Daily amd64 (20240408)
SourcePackage: fstransform
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in fstransform (Debian): | |
status: | Unknown → New |
Changed in fstransform (Ubuntu Focal): | |
status: | New → In Progress |
Changed in fstransform (Ubuntu Jammy): | |
status: | New → In Progress |
Changed in fstransform (Ubuntu Mantic): | |
status: | New → In Progress |
Changed in fstransform (Ubuntu Noble): | |
status: | Confirmed → In Progress |
assignee: | nobody → Sudip Mukherjee (sudipmuk) |
Changed in fstransform (Ubuntu Mantic): | |
assignee: | nobody → Sudip Mukherjee (sudipmuk) |
Changed in fstransform (Ubuntu Jammy): | |
assignee: | nobody → Sudip Mukherjee (sudipmuk) |
Changed in fstransform (Ubuntu Focal): | |
assignee: | nobody → Sudip Mukherjee (sudipmuk) |
Changed in fstransform (Ubuntu Focal): | |
status: | Confirmed → In Progress |
Changed in fstransform (Ubuntu Jammy): | |
status: | Confirmed → In Progress |
Changed in fstransform (Ubuntu Mantic): | |
status: | Confirmed → In Progress |
Changed in fstransform (Ubuntu Noble): | |
status: | Confirmed → In Progress |
Changed in fstransform (Ubuntu Focal): | |
assignee: | nobody → Sudip Mukherjee (sudipmuk) |
Changed in fstransform (Ubuntu Jammy): | |
assignee: | nobody → Sudip Mukherjee (sudipmuk) |
Changed in fstransform (Ubuntu Mantic): | |
assignee: | nobody → Sudip Mukherjee (sudipmuk) |
Changed in fstransform (Ubuntu Noble): | |
assignee: | nobody → Sudip Mukherjee (sudipmuk) |
description: | updated |
Changed in fstransform (Ubuntu Focal): | |
assignee: | Sudip Mukherjee (sudipmuk) → nobody |
Changed in fstransform (Ubuntu Jammy): | |
assignee: | Sudip Mukherjee (sudipmuk) → nobody |
Changed in fstransform (Ubuntu Mantic): | |
assignee: | Sudip Mukherjee (sudipmuk) → nobody |
Changed in fstransform (Ubuntu Noble): | |
assignee: | Sudip Mukherjee (sudipmuk) → nobody |
Changed in fstransform (Ubuntu Focal): | |
status: | In Progress → Confirmed |
Changed in fstransform (Ubuntu Jammy): | |
status: | In Progress → Confirmed |
Changed in fstransform (Ubuntu Mantic): | |
status: | In Progress → Confirmed |
Changed in fstransform (Ubuntu Noble): | |
status: | In Progress → Confirmed |
debdiff attached for Noble.