Changeset fadc76f in mainline


Ignore:
Timestamp:
2013-07-25T11:42:49Z (11 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.

Location:
uspace
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/trace/trace.c

    rb1b1891 rfadc76f  
    714714        o = oper_new("sync", 1, arg_def, V_ERRNO, 0, resp_def);
    715715        proto_add_oper(p, VFS_IN_SYNC, o);
    716         o = oper_new("mkdir", 1, arg_def, V_ERRNO, 0, resp_def);
    717         proto_add_oper(p, VFS_IN_MKDIR, o);
    718716        o = oper_new("unlink", 0, arg_def, V_ERRNO, 0, resp_def);
    719717        proto_add_oper(p, VFS_IN_UNLINK, o);
  • uspace/lib/c/include/ipc/vfs.h

    rb1b1891 rfadc76f  
    7474        VFS_IN_SYNC,
    7575        VFS_IN_REGISTER,
    76         VFS_IN_MKDIR,
    7776        VFS_IN_UNLINK,
    7877        VFS_IN_RENAME,
  • uspace/srv/vfs/vfs.c

    rb1b1891 rfadc76f  
    109109                        vfs_fstat(callid, &call);
    110110                        break;
    111                 case VFS_IN_MKDIR:
    112                         vfs_mkdir(callid, &call);
    113                         break;
    114111                case VFS_IN_UNLINK:
    115112                        vfs_unlink(callid, &call);
  • 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.