Re: [PATCH v2 0/8] Binary Large Objects for Rust DebugFS

Matthew Maurer
2025-10-21T21:26:26Z

On Tue, Oct 21, 2025 at 12:10 AM Greg KH <gregkh@linuxfoundation.org> wrote:
>
> On Tue, Oct 21, 2025 at 12:26:12AM +0200, Danilo Krummrich wrote:
> > This series adds support for exposing binary large objects via Rust debugfs.
> >
> > The first two patches extend UserSliceReader and UserSliceWriter with partial
> > read/write helpers.
> >
> > The series further introduces read_binary_file(), write_binary_file() and
> > read_write_binary_file() methods for the Dir and ScopedDir types.
> >
> > It also introduces the BinaryWriter and BinaryReader traits, which are used to
> > read/write the implementing type's binary representation with the help of the
> > backing file operations from/to debugfs.
> >
> > Additional to some more generic blanked implementations for the BinaryWriter and
> > BinaryReader traits it also provides implementations for common smart pointer
> > types.
> >
> > Both samples (file-based and scoped) are updated with corresponding examples.
> >
> > A branch containing the patches can be found in [1].
> >
> > [1] https://git.kernel.org/pub/scm/linux/kernel/git/dakr/linux.git/log/?h=debugfs_blobs
>
> Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

Reviewed-by: Matthew Maurer <mmaurer@google.com>