Re: Yet another newbie question w.r.t. kernel patching

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

 



Hi Rick,

On 9/6/24 3:55 PM, Rick Macklem wrote:
> Hi,
> 
> Another newbie question that hopefully someone won't mind answering....
> There are a few functions in fs/nfs/nfs3acl.c (nfs3_prepare_get_acl(),...)
> that my patch uses for NFSv4. I just copied them into nfs42proc.c to get
> things to build, but that obviously is just a hack.
> 
> So, the question is...what should I do with functions chared between the
> NFSv3 and NFSv4 clients?
> - Put them in some new file in fs/nfs_common, maybe?

Since they're shared between client modules, and not the server, you could probably put this in a new file under fs/nfs/. Maybe fs/nfs/acl.c?

> 
> Thanks in advance for your help, rick
> ps: If you create a new file, do you just update the Makefile or is there
>        more trickery involved?
> 

Yeah, you should just need to update the Makefile.

I hope this helps,
Anna




[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux