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