linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* btrfs: extended inode refs
@ 2013-01-31 15:33 Norbert Veber
  2013-01-31 17:34 ` David Sterba
  0 siblings, 1 reply; 4+ messages in thread
From: Norbert Veber @ 2013-01-31 15:33 UTC (permalink / raw)
  To: linux-btrfs

Hi,


I am trying to switch my BackupPC filesystem to btrfs, so I upgraded to
kernel 3.7.5 as I understand it has support for more hard links.
However I still get the 'too many hard links error'.

I looked at Mark Fasheh's patch, and from my rudimentary udnerstanding
it seems like I need to set BTRFS_FEATURE_INCOMPAT_EXTENDED_IREF in the
superblock.

Is there any way to edit the superblock of an existing filesystem to
enable extended inode refs so that more hard links can be used?

I even went as far as backing up the filesystem, re-formatting using the
mkfs in the latest git version of btrfs-progs, and restoring but it
still doesnt work - too many hard links.  Aparently the mkfs patch wasnt
even applied in git yet?

$ grep -ir BTRFS_FEATURE_INCOMPAT_EXTENDED_IREF .
$ 

Does this mean I shouldnt be using the feature just yet? :P

Thanks,

Norbert

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: btrfs: extended inode refs
  2013-01-31 15:33 btrfs: extended inode refs Norbert Veber
@ 2013-01-31 17:34 ` David Sterba
  2013-01-31 18:25   ` Norbert Veber
  0 siblings, 1 reply; 4+ messages in thread
From: David Sterba @ 2013-01-31 17:34 UTC (permalink / raw)
  To: Norbert Veber; +Cc: linux-btrfs

On Thu, Jan 31, 2013 at 10:33:37AM -0500, Norbert Veber wrote:
> I looked at Mark Fasheh's patch, and from my rudimentary udnerstanding
> it seems like I need to set BTRFS_FEATURE_INCOMPAT_EXTENDED_IREF in the
> superblock.
> 
> Is there any way to edit the superblock of an existing filesystem to
> enable extended inode refs so that more hard links can be used?

I've once written a one-shot super block "editor" that modified super_flag, if
you feel like updating it to tweak the incompat bits, here it is

http://repo.or.cz/w/btrfs-progs-unstable/devel.git/commit/0c4a8413af17909c6909f8ad96d3cf72c7c3a537

Otherwise, Mark's patches add the incompat bit unconditionally, we need
a way how to make it tunable in the same way as other mkfs do. I'd say
to take them as-is now and extend mkfs later.

david

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: btrfs: extended inode refs
  2013-01-31 17:34 ` David Sterba
@ 2013-01-31 18:25   ` Norbert Veber
  2013-02-01 12:37     ` David Sterba
  0 siblings, 1 reply; 4+ messages in thread
From: Norbert Veber @ 2013-01-31 18:25 UTC (permalink / raw)
  To: David Sterba; +Cc: linux-btrfs

On Thu, Jan 31, 2013 at 06:34:04PM +0100, David Sterba wrote:
> Otherwise, Mark's patches add the incompat bit unconditionally, we need
> a way how to make it tunable in the same way as other mkfs do. I'd say
> to take them as-is now and extend mkfs later.

Well I guess its more of a job for btrfstune.  Same way as tune2fs can
enable all of their features.

Having to reformat seems uncecessary.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: btrfs: extended inode refs
  2013-01-31 18:25   ` Norbert Veber
@ 2013-02-01 12:37     ` David Sterba
  0 siblings, 0 replies; 4+ messages in thread
From: David Sterba @ 2013-02-01 12:37 UTC (permalink / raw)
  To: Norbert Veber; +Cc: David Sterba, linux-btrfs

On Thu, Jan 31, 2013 at 01:25:26PM -0500, Norbert Veber wrote:
> On Thu, Jan 31, 2013 at 06:34:04PM +0100, David Sterba wrote:
> > Otherwise, Mark's patches add the incompat bit unconditionally, we need
> > a way how to make it tunable in the same way as other mkfs do. I'd say
> > to take them as-is now and extend mkfs later.
> 
> Well I guess its more of a job for btrfstune.  Same way as tune2fs can
> enable all of their features.

Right.

> Having to reformat seems uncecessary.

Right.

david

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-02-01 12:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-31 15:33 btrfs: extended inode refs Norbert Veber
2013-01-31 17:34 ` David Sterba
2013-01-31 18:25   ` Norbert Veber
2013-02-01 12:37     ` David Sterba

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).