When executing fatresize as a user that lacks permissions to the specified device, it fails with the following message:
You must specify exactly one existing device.
Since the user specified a device, this message is misleading. I ran into this issue and I suspect the two users participating in this reddit thread did as well.
The root cause seems to be the ped_device_get call in the probe_device function which errors out due to lack of permissions, but the error message is swallowed instead of reported back to the user.
I'll create a PR shortly that doesn't address the root cause, but at least provides an error message that hints to the user that their lack of permissions may be the problem.
When executing fatresize as a user that lacks permissions to the specified device, it fails with the following message:
Since the user specified a device, this message is misleading. I ran into this issue and I suspect the two users participating in this reddit thread did as well.
The root cause seems to be the
ped_device_getcall in theprobe_devicefunction which errors out due to lack of permissions, but the error message is swallowed instead of reported back to the user.I'll create a PR shortly that doesn't address the root cause, but at least provides an error message that hints to the user that their lack of permissions may be the problem.