Re: remote devices

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Riya,

It's actually not the major and minor numbers, sure they decide the
driver and the device but when it comes to read/write you actually
have file_operations. So I digged around a bit and this is the one you
should look into,

nfs_fhget

If you see at the end where it installs the inode->i_op and
inode->fop, the device files are initialized just like as if they were
on the NFS client machine itself. NFS operations are not used to
override device files here. How about using iSCSI and all for devices?

Maybe you can tell something more about what you are trying to do?

Regards,

On Thu, May 29, 2014 at 10:53 PM, riya khanna <riyakhanna1983@xxxxxxxxx> wrote:
> Hi,
>
> I'm trying to access remote devices locally by mounting/exporting /dev nodes
> over NFS. However, looks like the access requests are treated local based on
> major minor numbers (e.g. "cat /mnt-dev-over-nfs/kmg" output is same as "cat
> /dev/kmsg")
>
> How can I change this behavior? and if it is at all feasible?
>
> Thanks,
> Riya
>
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies@xxxxxxxxxxxxxxxxx
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>



-- 
        ---P.K.S

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies




[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux