Re: new file in kernel.



Dear Arnaldo, I didnt see your mail before.
I read some of the code you suggested, but it seems so complicated! I
just need to create a file named "file" on the path /tmp/.. Isn't
there an easier way?

Or else, where can I find some more information about what the parameters mean?
(struct svc_rqst *rqstp, struct nfsd3_createargs *argp, struct
nfsd3_diropres *resp)
It seems that with the "argp" parameter, I could pass all my
information, but I dont see what to put on the other parameters...

I would greatfuly thank some link where to find some information, please.
greetings,
Rafael Sisto.


On Jan 19, 2008 10:48 AM, Arnaldo Carvalho de Melo <acme@xxxxxxxxxx> wrote:
Em Sat, Jan 19, 2008 at 10:42:40AM -0300, Rafael Sisto escreveu:
Dear forum,
can anybody help me with this issue?

How do I create a new file in kernel mode?
I am trying to create a file in a system call I am building.

Look at how NFS does.

fs/nfsd/nfs3proc.c
nfsd3_proc_create

- Arnaldo

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: new file in kernel.
    ... How do I create a new file in kernel mode? ... Look at how NFS does. ... More majordomo info at http://vger.kernel.org/majordomo-info.html ... Please read the FAQ at http://www.tux.org/lkml/ ...
    (Linux-Kernel)
  • Re: [PATCH 2/4] direct-io: make O_DIRECT IO path be page based
    ... handle the get_user_pagesbusiness. ... This works directly for all users but NFS, ... struct rpc_task *task; ... More majordomo info at http://vger.kernel.org/majordomo-info.html ...
    (Linux-Kernel)
  • Re: Files not visible across NFS
    ... Many Ubuntu users seem to be experiencing such problems on ubuntu-2.6.17 ... the path on the nfs mount are set executable for user _and_others_. ... More majordomo info at http://vger.kernel.org/majordomo-info.html ... Please read the FAQ at http://www.tux.org/lkml/ ...
    (Linux-Kernel)
  • Re: Backup AS/400 to Windows Server
    ... System) or over the NTFS (microsoft's windows or samba type network file ... NFS protocol then use the SAV command,.You should also need an NSF ... I dont know the details and dont ... tape route in order to use the tape drive on the server. ...
    (comp.sys.ibm.as400.misc)
  • Re: quite big breakthrough in the BAD network performance, which mm6 did not fix
    ... this must be some misunderstanding, i do not want to complain, and i ... dont hope people get that impression, i am trying to do feedback, so ... send the line "unsubscribe linux-kernel" in ... More majordomo info at http://vger.kernel.org/majordomo-info.html ...
    (Linux-Kernel)