Re: [PATCH 8/9] pstore/blk: use the normal block device I/O path

2020-12-01 Thread Kees Cook
On Fri, Oct 16, 2020 at 03:20:46PM +0200, Christoph Hellwig wrote: > Stop poking into block layer internals and just open the block device > file an use kernel_read and kernel_write on it. Note that this means > the transformation from name_to_dev_t can't be used anymore, and proper > block

Re: [PATCH 8/9] pstore/blk: use the normal block device I/O path

2020-11-23 Thread Christoph Hellwig
On Sun, Nov 08, 2020 at 10:43:29PM +0800, 廖威雄 wrote: > > + const char devname[] = "/dev/pstore-blk"; > > + dev_t dev = name_to_dev_t(blkdev); > > + > > + if (!dev) > > + return; > > + init_unlink(devname); > > + init_mknod(devname, S_IFBLK | 0600,

Re: [PATCH 8/9] pstore/blk: use the normal block device I/O path

2020-11-08 Thread 廖威雄
On Fri, Oct 16, 2020 at 11:33 PM Christoph Hellwig wrote: > > Stop poking into block layer internals and just open the block device > file an use kernel_read and kernel_write on it. Note that this means > the transformation from name_to_dev_t can't be used anymore, and proper > block device file

[PATCH 8/9] pstore/blk: use the normal block device I/O path

2020-10-16 Thread Christoph Hellwig
Stop poking into block layer internals and just open the block device file an use kernel_read and kernel_write on it. Note that this means the transformation from name_to_dev_t can't be used anymore, and proper block device file names must be used. Signed-off-by: Christoph Hellwig ---