Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix cp file text busy error #834

Merged
merged 1 commit into from Dec 6, 2021
Merged

fix cp file text busy error #834

merged 1 commit into from Dec 6, 2021

Conversation

24sama
Copy link
Collaborator

@24sama 24sama commented Dec 6, 2021

What does this PR do?

Fix cp command report text busy error.

Why do we need this PR?

If using a cp command to copy a file to a target path that the file existed, the Linux may report a text file busy error. That caused by the file is been used. I modify the mv command to replace the cp command, which will not change the old file and the old file still be used by the process. Linux will change the process to use the new file and delete the old file when the process restarts.

Signed-off-by: 24sama <leo@kubesphere.io>
@ks-ci-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: 24sama

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ks-ci-bot ks-ci-bot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Dec 6, 2021
@24sama
Copy link
Collaborator Author

24sama commented Dec 6, 2021

/cc @pixiake

@pixiake
Copy link
Collaborator

pixiake commented Dec 6, 2021

/lgtm

@ks-ci-bot ks-ci-bot added the lgtm Indicates that a PR is ready to be merged. label Dec 6, 2021
@ks-ci-bot
Copy link
Collaborator

LGTM label has been added.

Git tree hash: 546f388a37d026dffc8d8c8136c43d3936c7b2bc

@ks-ci-bot ks-ci-bot merged commit 0b2b2c4 into kubesphere:master Dec 6, 2021
@24sama
Copy link
Collaborator Author

24sama commented Dec 10, 2021

/cherrypick release-2.0

@ks-ci-bot
Copy link
Collaborator

@24sama: new pull request created: #861

In response to this:

/cherrypick release-2.0

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants