Re: bcachefs-tools: O_DIRECT necessary?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2022-10-30 21:41-0400, Kent Overstreet wrote:
> On Mon, Oct 31, 2022 at 02:18:40AM +0100, Thomas Weißschuh wrote:
> > Hi all,
> > 
> > I just tried to run the unittests of bcachefs-tools and they are failing for
> > me.
> > The culprit is that mkfs.bcachefs tries to open the disk image with O_DIRECT
> > which is not allowed on tmpfs.
> > 
> > Is O_DIRECT really necessary for mkfs? It does not seem necessary for other
> > filesystems.
> 
> Hey - the proper mailing list for bcachefs is linux-bcachefs@xxxxxxxxxxxxxxx now
> :)

My bad, I copied the wrong list from one of your mails.

> It's not strictly necessary, we use O_DIRECT because we're emulating the kernel
> bio interface. There are other situations where this has been a problem though,
> we need to add either a flag to use buffered IO or preferably a way to
> automatically fall back to buffered IO.
> 
> Could you open a bug for this? I'll try to get to it in the near future
> 
> https://github.com/koverstreet/bcachefs/issues/

I opened it in the tools repo because those are broken:
https://github.com/koverstreet/bcachefs-tools/issues/132

Thomas



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux ARM Kernel]     [Linux Filesystem Development]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux