Re: [PATCH v2 01/34] bdev: open block device as files

Christian Brauner
2024-02-09T11:39:51Z

> > How about the following:
> >
> > - alloc_file loses the actual file allocation and gets a new name
> > (unfortunatel init_file is already taken), callers call
> > alloc_empty_file_noaccount or alloc_empty_file plus the
> > new helper.
> > - similarly __alloc_file_pseudo is split into a helper creating
> > a path for mnt and inode, and callers call that plus the
> > file allocation
> >
> > ?
>
> Ok, let me see how far I get.

Ok, it's in vfs.super.