Re: bcache with existing ext4 filesystem

2017-07-26 Thread Pavel Machek
Hi! > > > > > > Unfortunately, that would mean shifting 400GB data 8KB forward, and > > > > > > compatibility problems. So I'd prefer adding bcache superblock into > > > > > > the reserved space, so I can have caching _and_ compatibility with > > > > > > grub2 etc (and avoid 400GB move): > > > > >

Re: bcache with existing ext4 filesystem

2017-07-26 Thread Eric Wheeler
On Wed, 26 Jul 2017, Austin S. Hemmelgarn wrote: > On 2017-07-26 13:41, Eric Wheeler wrote: > > On Wed, 26 Jul 2017, Pavel Machek wrote: > > > > > Hi! > > > > > > > > > > Unfortunately, that would mean shifting 400GB data 8KB forward, > > > > > > > and > > > > > > > compatibility problems. So I'd

Re: bcache with existing ext4 filesystem

2017-07-26 Thread Austin S. Hemmelgarn
On 2017-07-26 13:41, Eric Wheeler wrote: On Wed, 26 Jul 2017, Pavel Machek wrote: Hi! Unfortunately, that would mean shifting 400GB data 8KB forward, and compatibility problems. So I'd prefer adding bcache superblock into the reserved space, so I can have caching _and_ compatibility with grub

Re: bcache with existing ext4 filesystem

2017-07-26 Thread Eric Wheeler
On Wed, 26 Jul 2017, Pavel Machek wrote: > Hi! > > > > > > Unfortunately, that would mean shifting 400GB data 8KB forward, and > > > > > compatibility problems. So I'd prefer adding bcache superblock into > > > > > the reserved space, so I can have caching _and_ compatibility with > > > > > grub2

Re: bcache with existing ext4 filesystem

2017-07-25 Thread Pavel Machek
Hi! > > > > Unfortunately, that would mean shifting 400GB data 8KB forward, and > > > > compatibility problems. So I'd prefer adding bcache superblock into > > > > the reserved space, so I can have caching _and_ compatibility with > > > > grub2 etc (and avoid 400GB move): > > > > > > The common w

Re: bcache with existing ext4 filesystem

2017-07-25 Thread Pavel Machek
On Tue 2017-07-25 14:02:25, Theodore Ts'o wrote: > On Tue, Jul 25, 2017 at 03:46:04PM +0200, Pavel Machek wrote: > > > > Is there some field in ext2 superblock that changes every time > > filesystem is changed? Is mtime changed by fsck/badblocks/...? > > No, there isn't. If we were writing the s

Re: bcache with existing ext4 filesystem

2017-07-25 Thread Eric Wheeler
On Tue, 25 Jul 2017, Pavel Machek wrote: > On Tue 2017-07-25 12:32:48, Vojtech Pavlik wrote: > > On Tue, Jul 25, 2017 at 08:43:04AM +0200, Pavel Machek wrote: > > > On Tue 2017-07-25 00:51:56, Theodore Ts'o wrote: > > > > On Mon, Jul 24, 2017 at 10:04:51PM +0200, Pavel Machek wrote: > > > > > Ques

Re: bcache with existing ext4 filesystem

2017-07-25 Thread Theodore Ts'o
On Tue, Jul 25, 2017 at 03:46:04PM +0200, Pavel Machek wrote: > > Is there some field in ext2 superblock that changes every time > filesystem is changed? Is mtime changed by fsck/badblocks/...? No, there isn't. If we were writing the superblock every time the file system is changed it would be *

Re: bcache with existing ext4 filesystem

2017-07-25 Thread Theodore Ts'o
On Tue, Jul 25, 2017 at 01:12:10PM +0200, Pavel Machek wrote: > > Well... if I move the partition, grub2 (etc) will be unable to access > data on it. (Plus I do not have free space before some of the > partitions I'd like to be cached). Both Grub and Linux's implementation of ext4 expect the supe

Re: bcache with existing ext4 filesystem

2017-07-25 Thread Pavel Machek
Hi! > > Question for you was... Is the first 1KiB of each ext4 filesystem still > > free and "reserved for a bootloader"? > > Yes. > > > If I needed more for bcache superblock (8KiB, IIRC), would that be > > easy to accomplish on existing filesystem? > > Huh? Why would the bcache superblock ma

Re: bcache with existing ext4 filesystem

2017-07-25 Thread Pavel Machek
On Tue 2017-07-25 12:32:48, Vojtech Pavlik wrote: > On Tue, Jul 25, 2017 at 08:43:04AM +0200, Pavel Machek wrote: > > On Tue 2017-07-25 00:51:56, Theodore Ts'o wrote: > > > On Mon, Jul 24, 2017 at 10:04:51PM +0200, Pavel Machek wrote: > > > > Question for you was... Is the first 1KiB of each ext4 f

Re: bcache with existing ext4 filesystem

2017-07-25 Thread Vojtech Pavlik
On Tue, Jul 25, 2017 at 08:43:04AM +0200, Pavel Machek wrote: > On Tue 2017-07-25 00:51:56, Theodore Ts'o wrote: > > On Mon, Jul 24, 2017 at 10:04:51PM +0200, Pavel Machek wrote: > > > Question for you was... Is the first 1KiB of each ext4 filesystem still > > > free and "reserved for a bootloader"

Re: bcache with existing ext4 filesystem

2017-07-24 Thread Pavel Machek
On Tue 2017-07-25 00:51:56, Theodore Ts'o wrote: > On Mon, Jul 24, 2017 at 10:04:51PM +0200, Pavel Machek wrote: > > Question for you was... Is the first 1KiB of each ext4 filesystem still > > free and "reserved for a bootloader"? > > Yes. Thanks. > > If I needed more for bcache superblock (8KiB

Re: bcache with existing ext4 filesystem

2017-07-24 Thread Theodore Ts'o
On Mon, Jul 24, 2017 at 10:04:51PM +0200, Pavel Machek wrote: > Question for you was... Is the first 1KiB of each ext4 filesystem still > free and "reserved for a bootloader"? Yes. > If I needed more for bcache superblock (8KiB, IIRC), would that be > easy to accomplish on existing filesystem? H

Re: bcache with existing ext4 filesystem

2017-07-24 Thread Pavel Machek
Hi! On Mon 2017-07-24 15:27:18, Theodore Ts'o wrote: > On Mon, Jul 24, 2017 at 09:15:48PM +0200, Pavel Machek wrote: > > > > > > Am 24.07.2017 um 20:57 schrieb Pavel Machek: > > > >Would it be feasible to run bcache (write-through) with existing ext4 > > > >filesystem? > > > > > > > >I have 400GB

Re: bcache with existing ext4 filesystem

2017-07-24 Thread Reindl Harald
Am 24.07.2017 um 20:57 schrieb Pavel Machek: Would it be feasible to run bcache (write-through) with existing ext4 filesystem? I have 400GB of data I'd rather not move, and SSD I could use for caching. Ok, SSD is connecte over USB2, but I guess it is still way faster then seeking harddrive on

Re: bcache with existing ext4 filesystem

2017-07-24 Thread Theodore Ts'o
On Mon, Jul 24, 2017 at 09:15:48PM +0200, Pavel Machek wrote: > > > > Am 24.07.2017 um 20:57 schrieb Pavel Machek: > > >Would it be feasible to run bcache (write-through) with existing ext4 > > >filesystem? > > > > > >I have 400GB of data I'd rather not move, and SSD I could use for > > >caching.

Re: bcache with existing ext4 filesystem

2017-07-24 Thread Pavel Machek
On Mon 2017-07-24 21:08:16, Reindl Harald wrote: > > > Am 24.07.2017 um 20:57 schrieb Pavel Machek: > >Would it be feasible to run bcache (write-through) with existing ext4 > >filesystem? > > > >I have 400GB of data I'd rather not move, and SSD I could use for > >caching. Ok, SSD is connecte over

bcache with existing ext4 filesystem

2017-07-24 Thread Pavel Machek
Hi! Would it be feasible to run bcache (write-through) with existing ext4 filesystem? I have 400GB of data I'd rather not move, and SSD I could use for caching. Ok, SSD is connecte over USB2, but I guess it is still way faster then seeking harddrive on random access... I have kernels on that part