Subversion Repositories HelenOS

Rev

Rev 2657 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2657 Rev 2660
Line 84... Line 84...
84
 
84
 
85
    /*
85
    /*
86
     * Now, we expect the client to send us data with the name of the file
86
     * Now, we expect the client to send us data with the name of the file
87
     * system.
87
     * system.
88
     */
88
     */
89
    if (!ipc_data_receive(&callid, NULL, &size)) {
89
    if (!ipc_data_write_receive(&callid, NULL, &size)) {
90
        ipc_answer_0(callid, EINVAL);
90
        ipc_answer_0(callid, EINVAL);
91
        ipc_answer_0(rid, EINVAL);
91
        ipc_answer_0(rid, EINVAL);
92
        return;
92
        return;
93
    }
93
    }
94
 
94
 
Line 104... Line 104...
104
 
104
 
105
    /*
105
    /*
106
     * Deliver the file system name.
106
     * Deliver the file system name.
107
     */
107
     */
108
    char fs_name[FS_NAME_MAXLEN + 1];
108
    char fs_name[FS_NAME_MAXLEN + 1];
109
    (void) ipc_data_deliver(callid, fs_name, size);
109
    (void) ipc_data_write_deliver(callid, fs_name, size);
110
    fs_name[size] = '\0';
110
    fs_name[size] = '\0';
111
   
111
   
112
    /*
112
    /*
113
     * Check if we know a file system with the same name as is in fs_name.
113
     * Check if we know a file system with the same name as is in fs_name.
114
     * This will also give us its file system handle.
114
     * This will also give us its file system handle.
Line 120... Line 120...
120
    }
120
    }
121
 
121
 
122
    /*
122
    /*
123
     * Now, we want the client to send us the mount point.
123
     * Now, we want the client to send us the mount point.
124
     */
124
     */
125
    if (!ipc_data_receive(&callid, NULL, &size)) {
125
    if (!ipc_data_write_receive(&callid, NULL, &size)) {
126
        ipc_answer_0(callid, EINVAL);
126
        ipc_answer_0(callid, EINVAL);
127
        ipc_answer_0(rid, EINVAL);
127
        ipc_answer_0(rid, EINVAL);
128
        return;
128
        return;
129
    }
129
    }
130
 
130
 
Line 148... Line 148...
148
    }
148
    }
149
 
149
 
150
    /*
150
    /*
151
     * Deliver the mount point.
151
     * Deliver the mount point.
152
     */
152
     */
153
    (void) ipc_data_deliver(callid, buf, size);
153
    (void) ipc_data_write_deliver(callid, buf, size);
154
 
154
 
155
    /*
155
    /*
156
     * Lookup the root node of the filesystem being mounted.
156
     * Lookup the root node of the filesystem being mounted.
157
     * In this case, we don't need to take the unlink_futex as the root node
157
     * In this case, we don't need to take the unlink_futex as the root node
158
     * cannot be removed. However, we do take a reference to it so that
158
     * cannot be removed. However, we do take a reference to it so that