All of lore.kernel.org
 help / color / mirror / Atom feed
* Having troubles to disable inline extents
@ 2020-06-16 13:41 Rebraca Dejan (BSOT/PJ-ES1-Bg)
  2020-06-16 13:45 ` Qu Wenruo
  0 siblings, 1 reply; 5+ messages in thread
From: Rebraca Dejan (BSOT/PJ-ES1-Bg) @ 2020-06-16 13:41 UTC (permalink / raw)
  To: linux-btrfs

Hi,

We are trying to add support for BTRFS in our project, so we started to examine this filesystem.
For the moment, we don't want inline extents for our tests, but we have difficulties to turn them off. I'm using 'max_inline=0' mount option to disable them, but I still see them for small files (< 50 Bytes) using FS_IOC_FIEMAP ioctl. Kernel log when executing mount:
[11051.642976] BTRFS info (device loop0): max_inline at 0
[11051.642978] BTRFS info (device loop0): disk space caching is enabled
[11051.642979] BTRFS info (device loop0): has skinny extents

Environment:
- 4.15.0-96-generic #97~16.04.1-Ubuntu SMP Wed Apr 1 03:03:31 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
- btrfs-progs v4.4

I would really appreciate your support on this.
Tnx.

Best regards,

Dejan Rebraca
BSOT/PJ-ES1-Bg

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

* Re: Having troubles to disable inline extents
  2020-06-16 13:41 Having troubles to disable inline extents Rebraca Dejan (BSOT/PJ-ES1-Bg)
@ 2020-06-16 13:45 ` Qu Wenruo
  2020-06-16 13:57   ` Rebraca Dejan (BSOT/PJ-ES1-Bg)
  0 siblings, 1 reply; 5+ messages in thread
From: Qu Wenruo @ 2020-06-16 13:45 UTC (permalink / raw)
  To: Rebraca Dejan (BSOT/PJ-ES1-Bg), linux-btrfs


[-- Attachment #1.1: Type: text/plain, Size: 1109 bytes --]



On 2020/6/16 下午9:41, Rebraca Dejan (BSOT/PJ-ES1-Bg) wrote:
> Hi,
> 
> We are trying to add support for BTRFS in our project, so we started to examine this filesystem.
> For the moment, we don't want inline extents for our tests, but we have difficulties to turn them off. I'm using 'max_inline=0' mount option to disable them, but I still see them for small files (< 50 Bytes) using FS_IOC_FIEMAP ioctl. Kernel log when executing mount:

max_inline only affects new writes.
So existing inlined extent won't be affected.

You need to defrag such small files to convert them back to regular extents.

Thanks,
Qu

> [11051.642976] BTRFS info (device loop0): max_inline at 0
> [11051.642978] BTRFS info (device loop0): disk space caching is enabled
> [11051.642979] BTRFS info (device loop0): has skinny extents
> 
> Environment:
> - 4.15.0-96-generic #97~16.04.1-Ubuntu SMP Wed Apr 1 03:03:31 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
> - btrfs-progs v4.4
> 
> I would really appreciate your support on this.
> Tnx.
> 
> Best regards,
> 
> Dejan Rebraca
> BSOT/PJ-ES1-Bg
> 


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

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

* RE: Having troubles to disable inline extents
  2020-06-16 13:45 ` Qu Wenruo
@ 2020-06-16 13:57   ` Rebraca Dejan (BSOT/PJ-ES1-Bg)
  2020-06-16 14:57     ` Nikolay Borisov
  0 siblings, 1 reply; 5+ messages in thread
From: Rebraca Dejan (BSOT/PJ-ES1-Bg) @ 2020-06-16 13:57 UTC (permalink / raw)
  To: Qu Wenruo, linux-btrfs

Ok, I understand.

And is there a way to disable them during filesystem creation (e.g. some option in mkfs.btrfs)?

Thanks,
Dejan

-----Original Message-----
From: Qu Wenruo <quwenruo.btrfs@gmx.com> 
Sent: utorak, 16. jun 2020. 15:45
To: Rebraca Dejan (BSOT/PJ-ES1-Bg) <Dejan.Rebraca@rs.bosch.com>; linux-btrfs@vger.kernel.org
Subject: Re: Having troubles to disable inline extents



On 2020/6/16 下午9:41, Rebraca Dejan (BSOT/PJ-ES1-Bg) wrote:
> Hi,
> 
> We are trying to add support for BTRFS in our project, so we started to examine this filesystem.
> For the moment, we don't want inline extents for our tests, but we have difficulties to turn them off. I'm using 'max_inline=0' mount option to disable them, but I still see them for small files (< 50 Bytes) using FS_IOC_FIEMAP ioctl. Kernel log when executing mount:

max_inline only affects new writes.
So existing inlined extent won't be affected.

You need to defrag such small files to convert them back to regular extents.

Thanks,
Qu

> [11051.642976] BTRFS info (device loop0): max_inline at 0 
> [11051.642978] BTRFS info (device loop0): disk space caching is 
> enabled [11051.642979] BTRFS info (device loop0): has skinny extents
> 
> Environment:
> - 4.15.0-96-generic #97~16.04.1-Ubuntu SMP Wed Apr 1 03:03:31 UTC 2020 
> x86_64 x86_64 x86_64 GNU/Linux
> - btrfs-progs v4.4
> 
> I would really appreciate your support on this.
> Tnx.
> 
> Best regards,
> 
> Dejan Rebraca
> BSOT/PJ-ES1-Bg
> 


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

* Re: Having troubles to disable inline extents
  2020-06-16 13:57   ` Rebraca Dejan (BSOT/PJ-ES1-Bg)
@ 2020-06-16 14:57     ` Nikolay Borisov
  2020-06-16 16:38       ` Rebraca Dejan (BSOT/PJ-ES1-Bg)
  0 siblings, 1 reply; 5+ messages in thread
From: Nikolay Borisov @ 2020-06-16 14:57 UTC (permalink / raw)
  To: Rebraca Dejan (BSOT/PJ-ES1-Bg), Qu Wenruo, linux-btrfs



On 16.06.20 г. 16:57 ч., Rebraca Dejan (BSOT/PJ-ES1-Bg) wrote:
> Ok, I understand.
> 
> And is there a way to disable them during filesystem creation (e.g. some option in mkfs.btrfs)?

No, this is a mount option, not persisted on-disk.

<snip>

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

* RE: Having troubles to disable inline extents
  2020-06-16 14:57     ` Nikolay Borisov
@ 2020-06-16 16:38       ` Rebraca Dejan (BSOT/PJ-ES1-Bg)
  0 siblings, 0 replies; 5+ messages in thread
From: Rebraca Dejan (BSOT/PJ-ES1-Bg) @ 2020-06-16 16:38 UTC (permalink / raw)
  To: Nikolay Borisov, Qu Wenruo, linux-btrfs

Understood.
Thanks for your support.

Dejan

-----Original Message-----
From: Nikolay Borisov <nborisov@suse.com> 
Sent: utorak, 16. jun 2020. 16:57
To: Rebraca Dejan (BSOT/PJ-ES1-Bg) <Dejan.Rebraca@rs.bosch.com>; Qu Wenruo <quwenruo.btrfs@gmx.com>; linux-btrfs@vger.kernel.org
Subject: Re: Having troubles to disable inline extents



On 16.06.20 г. 16:57 ч., Rebraca Dejan (BSOT/PJ-ES1-Bg) wrote:
> Ok, I understand.
> 
> And is there a way to disable them during filesystem creation (e.g. some option in mkfs.btrfs)?

No, this is a mount option, not persisted on-disk.

<snip>

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

end of thread, other threads:[~2020-06-16 16:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-16 13:41 Having troubles to disable inline extents Rebraca Dejan (BSOT/PJ-ES1-Bg)
2020-06-16 13:45 ` Qu Wenruo
2020-06-16 13:57   ` Rebraca Dejan (BSOT/PJ-ES1-Bg)
2020-06-16 14:57     ` Nikolay Borisov
2020-06-16 16:38       ` Rebraca Dejan (BSOT/PJ-ES1-Bg)

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.