Changeset fadc76f in mainline
- Timestamp:
- 2013-07-25T11:42:49Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 20c071d
- Parents:
- b1b1891
- Location:
- uspace
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/trace/trace.c
rb1b1891 rfadc76f 714 714 o = oper_new("sync", 1, arg_def, V_ERRNO, 0, resp_def); 715 715 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);718 716 o = oper_new("unlink", 0, arg_def, V_ERRNO, 0, resp_def); 719 717 proto_add_oper(p, VFS_IN_UNLINK, o); -
uspace/lib/c/include/ipc/vfs.h
rb1b1891 rfadc76f 74 74 VFS_IN_SYNC, 75 75 VFS_IN_REGISTER, 76 VFS_IN_MKDIR,77 76 VFS_IN_UNLINK, 78 77 VFS_IN_RENAME, -
uspace/srv/vfs/vfs.c
rb1b1891 rfadc76f 109 109 vfs_fstat(callid, &call); 110 110 break; 111 case VFS_IN_MKDIR:112 vfs_mkdir(callid, &call);113 break;114 111 case VFS_IN_UNLINK: 115 112 vfs_unlink(callid, &call); -
uspace/srv/vfs/vfs_ops.c
rb1b1891 rfadc76f 1063 1063 } 1064 1064 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 1087 1065 void vfs_unlink(ipc_callid_t rid, ipc_call_t *request) 1088 1066 {
Note:
See TracChangeset
for help on using the changeset viewer.