Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752505AbdGYQLB (ORCPT ); Tue, 25 Jul 2017 12:11:01 -0400 Received: from imap.thunk.org ([74.207.234.97]:59222 "EHLO imap.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752144AbdGYQLA (ORCPT ); Tue, 25 Jul 2017 12:11:00 -0400 Date: Tue, 25 Jul 2017 12:10:54 -0400 From: "Theodore Ts'o" To: Pavel Machek Cc: Vojtech Pavlik , Reindl Harald , linux-ext4@vger.kernel.org, kernel list , kent.overstreet@gmail.com, linux-bcache@vger.kernel.org Subject: Re: bcache with existing ext4 filesystem Message-ID: <20170725161054.dbf6ily5jb7gjvdg@thunk.org> Mail-Followup-To: Theodore Ts'o , Pavel Machek , Vojtech Pavlik , Reindl Harald , linux-ext4@vger.kernel.org, kernel list , kent.overstreet@gmail.com, linux-bcache@vger.kernel.org References: <20170724185703.GA31422@amd> <64c810cf-a95c-f862-f25a-ebd7419b2632@thelounge.net> <20170724191548.GA32425@amd> <20170724192718.t7n5zgualz5lillg@thunk.org> <20170724200451.GA4318@amd> <20170725045156.kbyaxj4mmi75yyt5@thunk.org> <20170725064304.GA11723@amd> <20170725103248.GA12869@suse.com> <20170725111210.GA5667@amd> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170725111210.GA5667@amd> User-Agent: NeoMutt/20170609 (1.8.3) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: tytso@thunk.org X-SA-Exim-Scanned: No (on imap.thunk.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 678 Lines: 15 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 superblock to be at offset 1024 bytes from the beginning of the block device. >From looking at Documentation/bcache.txt, the problem is that bcache works much like LVM or device mapper. That is, you have to create the file system on /dev/bcacheN. That simplies that grub needs to understand bcache, which as far as I understand, it doesn't today. - Ted