We have moved to a new Sailfish OS Forum. Please start new discussions there.
6

[Bug] btrfs: ERROR: unable get label Inappropriate ioctl for device

asked 2015-05-12 15:51:17 +0300

00prometheus gravatar image

updated 2015-05-12 16:39:39 +0300

There is something broken in the btrfs filesystem. When doing some basic btrfs operations, such as:

btrfs filesystem show /

you get the error message:

ERROR: unable get label Inappropriate ioctl for device
Btrfs v3.16

The error prevents many basic information gathering commands such as btrfs fi show <dev>, btrfs device scan <dev> and btrfs device ready <dev>

I am a concerned about this, since it is never a good idea to have problems in your filesystem! Does anyone know why we get the error message, and how to fix it?

edit retag flag offensive close delete

Comments

I have the same since a long time and it doesn't prevent btrfs fi show to work for me. And the balancing run as expected last night.

Sthocs ( 2015-05-12 16:48:31 +0300 )edit

Yes btrfs fi show works, but something like btrfs fi show /dev/mmcblk0p28 doesn't! btrfs balance is unrelated, I believe. btrfs fi show isn't the real problem though: There are quite a few btrfs commands that don't work, and that is what is making me nervous. I am trying to set up multiple subvolumes for redundant storage with error correction in the filesystem, and it makes me uncomfortable doing those kinds of filesystem operations when the filesystem seems unstable. It makes me uncomfortable when the filesystem seems unstable, period. :-)

00prometheus ( 2015-05-12 17:43:58 +0300 )edit

2 Answers

Sort by » oldest newest most voted
5

answered 2015-05-12 17:30:47 +0300

g7 gravatar image

updated 2015-05-12 17:34:42 +0300

The error is normal and happens because the version of btrfs-progs (that provides the "btrfs" command line tool) expects a more updated version of the btrfs kernel module (that in the Jolla kernel is pretty old).

It seems though that specifying the partition/mountpoint manually doesn't work.

Use

btrfs fi show

or

btrfs fi show sailfish

edit flag offensive delete publish link more

Comments

Thanks! Do you know what the correct version of the btrfs-tools is? It might be worth it to compile them.

00prometheus ( 2015-05-12 17:37:20 +0300 )edit
2

Not a btrfs expert, but I guess that it's not possible. The 'device ready' command has been added after the 3.4 kernel release (which the Jolla is using) and thus I don't think it'll work with the ancient kernel module we have.
You may try to downgrade to an older version of btrfs-progs though if you're feeling brave :)

g7 ( 2015-05-12 17:59:08 +0300 )edit
1

I think we are in a comment-editing race-condition :-)

00prometheus ( 2015-05-12 18:00:57 +0300 )edit
1

Uh, saw just now the edited comment :)

If I'm not mistaken some update ago (maybe before u10?) the btrfs-progs was "correct". I'll dig into the public GitHub repositories to see if I can retrieve the version used :)

g7 ( 2015-05-12 18:01:02 +0300 )edit
1

Ok, the current version is 3.16 so probably the one that was shipping before was a git snapshot of 0.20: https://github.com/nemomobile-packages/btrfs-progs/releases/tag/0.20rc1%2Bgit358.4

g7 ( 2015-05-12 18:06:07 +0300 )edit
0

answered 2015-05-12 17:13:35 +0300

luchmhor gravatar image

updated 2015-05-12 17:16:13 +0300

In general:

this might be a filesystem error (btrfs is still experimental)


You should run btrfsck on the device to find out which Inodes are responsible for the errors.

You can also try: sudo btrfs balance start /

edit flag offensive delete publish link more

Comments

2

I don't think this is a problem specific to my device, I think it is a general bug in SailfishOS. If so I think we need to draw attention to it. Have you tried something like btrfs fi show /? Does it work on your device?

00prometheus ( 2015-05-12 17:31:51 +0300 )edit
Login/Signup to Answer

Question tools

Follow
4 followers

Stats

Asked: 2015-05-12 15:51:17 +0300

Seen: 2,750 times

Last updated: May 12 '15