Skip to content

Commit

Permalink
corrected the comments
Browse files Browse the repository at this point in the history
  • Loading branch information
pralaydak authored and Pralay Dakua committed Jun 18, 2017
1 parent b80844a commit 0e6c3f8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/cow.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ static int copy_file_locked(struct cow *cow, const char *path,

res = copy_file(cow);
out:
/* unlock copy-ip metadata */
/* unlock copy-up metadata */
unlock_file_copyup(path, branch_rw, lockfd);
RETURN(res);
}
Expand Down
8 changes: 4 additions & 4 deletions src/general.c
Original file line number Diff line number Diff line change
Expand Up @@ -231,9 +231,8 @@ static int build_copyup_path(const char *path, int branch_rw,
}

/**
* Creates copy-up meta file to indicate ongoing copy-up.
* It also locks the metafile. Lock is meant for blocking
* competing processes to block copy-up.
* Creates copy-up meta file to indicate ongoing copy-up. It also locks the
* metafile. Lock is meant for blocking competing processes trying to copy-up.
* @return locked file descriptor.
*/
int lock_file_copyup(const char *path, int branch_rw) {
Expand Down Expand Up @@ -261,7 +260,8 @@ int lock_file_copyup(const char *path, int branch_rw) {

/**
* Removes copy-up meta file to indicate copy-up is complete.
* Also unlocks the copy-up meta file.
* Also unlocks the copy-up meta file to unlock other competing
* processes.
*/
int unlock_file_copyup(const char *path, int branch_rw, int lockfd) {
DBG("%s\n", path);
Expand Down

0 comments on commit 0e6c3f8

Please sign in to comment.