some stranges about device files in the NFS system
Subsystems (2)
Hello everyone!
I am using NFS to synchoronize the some file between server and client.But for device files ,some stranges happen,and I can't get the reason. The network environment has no problem becanse of the localhost as a server and a client at the same time.Whem I mount the server's device file :/dev/input to the client: /mnt/net,everything is OK and no exception happened. And the file "mice" in the /dev/input is the mouse's devcie file of server.And I execute the command "cat /dev/input/mice" to display the file of server.At the same time,I move my mouse,the display changed becanse the mouse's state was changing.But when I executed the command "cat /mnt/net/mice" to display the file of client, the process exit without any infomation.I don't know why. I get the states of the file "/dev/input/mice" of server and the file "mnt/net/mice" of client,the information is as follows:
the file state of client: [root@xiongyi net]# stat ./mice File: ‘./mice’
Size: 0 Blocks: 0 IO Block: 8192 Character Device Device: ah/10d Inode: 162551 Links: 1 Device type: d,3f Access: (0600/crw-------) Uid: ( 0/ root) Gid: ( 0/ root) Access: 2003-01-30 18:24:35.000000000 +0800 Modify: 2003-01-30 18:24:35.000000000 +0800 Change: 2004-05-03 00:59:19.000000000 +0800
the file state of server: [root@xiongyi net]# stat /dev/input/mice File: ‘
/dev/input/mice’ Size: 0 Blocks: 0 IO Block: 4096 Character Device Device: 307h/775d Inode: 162551 Links: 1 Device type: d,3f Access: (0600/crw-------) Uid: ( 0/ root) Gid: (
0/ root) Access: 2003-01-30 18:24:35.000000000 +0800 Modify:
2003-01-30 18:24:35.000000000 +0800 Change: 2004-05-03 00:59:19.000000000 +0800
I can't get the reason why execute "cat divicefile" in the client did NOT work.And whether can the device file synchronize. I am a new about NFS,I wish your help and hints.
_________________________________________________________________
享用世界上最大的电子邮件系统— MSN Hotmail。 http://www.hotmail.com
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs