Changeset 79ea5af in mainline for uspace/srv/vfs
- Timestamp:
- 2017-03-30T20:47:53Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 67e881c
- Parents:
- ae7bfbbd
- Location:
- uspace/srv/vfs
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/vfs/vfs.h
rae7bfbbd r79ea5af 215 215 extern int vfs_op_sync(int fd); 216 216 extern int vfs_op_truncate(int fd, int64_t size); 217 extern int vfs_op_unlink(int parentfd, int expectfd, int wflag,char *path);217 extern int vfs_op_unlink(int parentfd, int expectfd, char *path); 218 218 extern int vfs_op_unmount(int mpfd); 219 219 extern int vfs_op_wait_handle(bool high_fd); -
uspace/srv/vfs/vfs_ipc.c
rae7bfbbd r79ea5af 194 194 int parentfd = IPC_GET_ARG1(*request); 195 195 int expectfd = IPC_GET_ARG2(*request); 196 int wflag = IPC_GET_ARG3(*request);197 196 198 197 char *path; 199 198 int rc = async_data_write_accept((void **) &path, true, 0, 0, 0, NULL); 200 199 if (rc == EOK) 201 rc = vfs_op_unlink(parentfd, expectfd, wflag,path);200 rc = vfs_op_unlink(parentfd, expectfd, path); 202 201 203 202 async_answer_0(rid, rc); -
uspace/srv/vfs/vfs_ops.c
rae7bfbbd r79ea5af 672 672 } 673 673 674 int vfs_op_unlink(int parentfd, int expectfd, int wflag,char *path)674 int vfs_op_unlink(int parentfd, int expectfd, char *path) 675 675 { 676 676 int rc = EOK; … … 683 683 fibril_rwlock_write_lock(&namespace_rwlock); 684 684 685 int lflag = (wflag & WALK_DIRECTORY) ? L_DIRECTORY: 0;686 687 685 /* 688 686 * Files are retrieved in order of file descriptors, to prevent … … 717 715 if (expectfd >= 0) { 718 716 vfs_lookup_res_t lr; 719 rc = vfs_lookup_internal(parent->node, path, lflag, &lr);717 rc = vfs_lookup_internal(parent->node, path, 0, &lr); 720 718 if (rc != EOK) 721 719 goto exit; … … 733 731 734 732 vfs_lookup_res_t lr; 735 rc = vfs_lookup_internal(parent->node, path, lflag |L_UNLINK, &lr);733 rc = vfs_lookup_internal(parent->node, path, L_UNLINK, &lr); 736 734 if (rc != EOK) 737 735 goto exit;
Note:
See TracChangeset
for help on using the changeset viewer.