答复: [PATCH 08/11] erofs: support special inode
bluce.liguifu at huawei.com
Wed Aug 1 18:40:05 AEST 2018
# Test special device of erofs
we have test four special device, like char device, block device, pipe device and sock decive
using new_encode_dev to create device number in the image created by mkfs.erofs
specail devices node were created in the Ubuntu 16.04 LTS 4.4.0-104-generic,
the source codes is based on LDD3 source which coming from https://github.com/duxing2007/ldd3-examples-3.x/tree/origin/linux-4.4.y
Test char devices, block device, pipe device file
step 1, build ldd3 codes
step 2, install scull.ko sbull.ko and make device node with mknod cmd
$ cat /proc/devices|grep scull
$ cat /proc/devices|grep sbull
create device file:
mknod scull0 c 246 0
mknod pipe0 c 246 4
mknod sbulla b 251 0
step 3, create sock device with custom tcp server and client test program which invoke socket.
it will create a socket file.
step 4, create erofs image using mkfs.erofs
step 5, mount erofs image and test the device file
echo test > scull0, you will get it by input
2) sbull is the same to scull
(1) input cat pipe0 at a shell
(2) input echo test > pip0 at another shell
So you will recive test string displayed at the fisrt shell terminal screen
because erofs is a read only file system , socket file will not be created at fisrt running
socket file need unlink fisrtly and recreate by program
otherwise we got lots of string output at terminal when running socket server program.
发件人: Gaoxiang (OS)
发送时间: 2018年8月1日 16:18
收件人: liguifu (C) <bluce.liguifu at huawei.com>
抄送: Yuchao (T) <yuchao0 at huawei.com>; linux-erofs at lists.ozlabs.org; Wangzhigang (Brooke) <brooke.wangzhigang at hisilicon.com>
主题: Re: [PATCH 08/11] erofs: support special inode
On 2018/7/3 21:48, Chao Yu wrote:
>> The other code looks fine for me,
>> I think a basic test is needed for the function of this patch tho.
> Yeah, I hope Guifu will leave the time for testing the patch.
Could you please reply this email with some test results of this patch?
More information about the Linux-erofs