Skip to contentSkip to conversation

Changes in /sys/bcache in kernel 3.13

DISCUSSION Rolf Fokkens 2 participants 3 messages Feb 18, 2014 – Feb 27, 2014 bcache (block layer cache)

lore
Share & tools
lore
#0 lore raw

Hi All,

bcache-status stopped working in kernel 3.13, see also: https://bugzilla.redhat.com/show_bug.cgi?id=1066555

It's probably related to the change "Fix dirty_data accounting" in kernel 3.13-rc4. What specifically has changes is the fact that that /sys/fs/bcache/<UUID>/dirty_data has been removed, which breaks bcache-status (https://gist.github.com/djwong/6343451). Just removing the check / reference to this dirty_data item fixes bcache-status. Or has it been replaced by a specific item?

Oh, BTW: bcache.txt still refers to dirty_data in /sys/fs/bcache/<UUID> which doesn't seem correct to me.

Cheers,

Rolf

#1 lore raw
Quoted 4 lines · Rolf Fokkens

Hi All,

bcache-status stopped working in kernel 3.13, see also:
https://bugzilla.redhat.com/show_bug.cgi?id=1066555

Oh, there are RH bugzillas about bcache-status problems? I guess that makes me 'upstream'. :D

Well, I guess I'll fix the no-newline-at-end problem too.

Quoted 6 lines

It's probably related to the change "Fix dirty_data accounting" in kernel 3.13-rc4. What specifically has changes is the fact that that /sys/fs/bcache/<UUID>/dirty_data has been removed, which breaks bcache-status (https://gist.github.com/djwong/6343451). Just removing the check / reference to this dirty_data item fixes bcache-status. Or has it been replaced by a specific item?

<shrug> I simply removed the dirty_data line and prettied up some of the formatting too. I don't have a problem with pulling the dirty data stats off the backing device.

Gist updated.

--D

Quoted 11 lines

Oh, BTW: bcache.txt still refers to dirty_data in /sys/fs/bcache/<UUID> which doesn't seem correct to me.

Cheers,

Rolf
--
To unsubscribe from this list: send the line "unsubscribe linux-bcache" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw
Quoted 1 line · Darrick J. Wong

Oh, there are RH bugzillas about bcache-status problems? I guess that makes me 'upstream'. :D Well, I guess I'll fix the no-newline-at-end problem too.

Thanks for accepting the upstream responsibility :-)

Quoted 1 line

<shrug> I simply removed the dirty_data line and prettied up some of the formatting too. I don't have a problem with pulling the dirty data stats off the backing device. Gist updated. --D

Thanks. I updated the Fedora package.

Rolf