1 |
It depends upon how much trouble you want to go thru. |
2 |
|
3 |
You could get the source to showmounts and copy that code or you could write |
4 |
your own server which would live on the NFS server to be a directory service |
5 |
for NFS mount points. |
6 |
|
7 |
On 3/8/06, c.s.prakash <thebase0@×××××.com> wrote: |
8 |
> |
9 |
> thanks |
10 |
> i can use it load the exported filesystem into a tmp file and can display |
11 |
> it |
12 |
> |
13 |
> but i need to do then in my c program. |
14 |
> is there something like system calls or library, so can directly do it in |
15 |
> my program. |
16 |
> |
17 |
> |
18 |
> |
19 |
> On 3/8/06, Darryl Wagoner <darryl-prv@××××××××.net> wrote: |
20 |
> > |
21 |
> > showmount(8) is what you are looking for. You may also want to check |
22 |
> > out the automounter and/or NIS. |
23 |
> > |
24 |
> > |
25 |
> > On 3/8/06, c.s.prakash < thebase0@×××××.com> wrote: |
26 |
> > > |
27 |
> > > hello, |
28 |
> > > |
29 |
> > > i have to find the exported filesystem ie., /etc/exports from a nfs |
30 |
> > > server dynamically |
31 |
> > > from the client macline. |
32 |
> > > |
33 |
> > > then i have to mount the file system ny selecting any of the exported |
34 |
> > > folder. |
35 |
> > > i have to done all this thru c program. how can i do. |
36 |
> > > |
37 |
> > > i dont know whether this is the correct mailing list. |
38 |
> > > |
39 |
> > > -- |
40 |
> > > C.S.Prakash |
41 |
> > > |
42 |
> > |
43 |
> > |
44 |
> > |
45 |
> > -- |
46 |
> > Darryl Wagoner - WA1GON |
47 |
> > |
48 |
> > "Evil triumphs when good men do nothing." - Edmund Burke [1729-1797] |
49 |
> > |
50 |
> |
51 |
> |
52 |
> |
53 |
> -- |
54 |
> C.S.Prakash |
55 |
> |
56 |
|
57 |
|
58 |
|
59 |
-- |
60 |
Darryl Wagoner - WA1GON |
61 |
|
62 |
"Evil triumphs when good men do nothing." - Edmund Burke [1729-1797] |