1 | Index: mount.c |
---|
2 | =================================================================== |
---|
3 | RCS file: /afs/slac/g/spear/cvsrep/rtems/src/c/src/lib/libc/mount.c,v |
---|
4 | retrieving revision 1.2 |
---|
5 | diff -c -r1.2 mount.c |
---|
6 | *** mount.c 29 Oct 2002 21:03:50 -0000 1.2 |
---|
7 | --- mount.c 30 Oct 2002 06:39:09 -0000 |
---|
8 | *************** |
---|
9 | *** 101,106 **** |
---|
10 | --- 101,113 ---- |
---|
11 | return -1; |
---|
12 | } |
---|
13 | |
---|
14 | + /* Do they support being mounted at all ? */ |
---|
15 | + if ( !fs_ops->fsmount_me_h ) { |
---|
16 | + errno = ENOTSUP; |
---|
17 | + goto cleanup_and_bail; |
---|
18 | + } |
---|
19 | + |
---|
20 | + |
---|
21 | /* |
---|
22 | * Allocate a mount table entry |
---|
23 | */ |
---|
24 | *************** |
---|
25 | *** 204,216 **** |
---|
26 | temp_mt_entry->mt_point_node.mt_entry = NULL; |
---|
27 | } |
---|
28 | |
---|
29 | ! if ( !fs_ops->fsmount_me_h ) { |
---|
30 | ! errno = ENOTSUP; |
---|
31 | goto cleanup_and_bail; |
---|
32 | } |
---|
33 | - |
---|
34 | - if ( fs_ops->fsmount_me_h( temp_mt_entry ) ) |
---|
35 | - goto cleanup_and_bail; |
---|
36 | |
---|
37 | /* |
---|
38 | * Add the mount table entry to the mount table chain |
---|
39 | --- 211,223 ---- |
---|
40 | temp_mt_entry->mt_point_node.mt_entry = NULL; |
---|
41 | } |
---|
42 | |
---|
43 | ! if ( fs_ops->fsmount_me_h( temp_mt_entry ) ) { |
---|
44 | ! /* try to undo the mount operation */ |
---|
45 | ! if ( loc.ops->unmount_h ) { |
---|
46 | ! loc.ops->unmount_h( temp_mt_entry ); |
---|
47 | ! } |
---|
48 | goto cleanup_and_bail; |
---|
49 | } |
---|
50 | |
---|
51 | /* |
---|
52 | * Add the mount table entry to the mount table chain |
---|