Changeset fadc76f in mainline for uspace/srv/vfs/vfs_ops.c


Ignore:
Timestamp:
2013-07-25T11:42:49Z (12 years ago)
Author:
Ji?? Z?rev?cky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
20c071d
Parents:
b1b1891
Message:

Remove MKDIR from server.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/vfs/vfs_ops.c

    rb1b1891 rfadc76f  
    10631063}
    10641064
    1065 void vfs_mkdir(ipc_callid_t rid, ipc_call_t *request)
    1066 {
    1067         int mode = IPC_GET_ARG1(*request);
    1068        
    1069         char *path;
    1070         int rc = async_data_write_accept((void **) &path, true, 0, 0, 0, NULL);
    1071         if (rc != EOK) {
    1072                 async_answer_0(rid, rc);
    1073                 return;
    1074         }
    1075        
    1076         /* Ignore mode for now. */
    1077         (void) mode;
    1078        
    1079         fibril_rwlock_write_lock(&namespace_rwlock);
    1080         int lflag = L_DIRECTORY | L_CREATE | L_EXCLUSIVE;
    1081         rc = vfs_lookup_internal(path, lflag, NULL, NULL);
    1082         fibril_rwlock_write_unlock(&namespace_rwlock);
    1083         free(path);
    1084         async_answer_0(rid, rc);
    1085 }
    1086 
    10871065void vfs_unlink(ipc_callid_t rid, ipc_call_t *request)
    10881066{
Note: See TracChangeset for help on using the changeset viewer.