borgbackup / borg

Deduplicating archiver with compression and authenticated encryption.
https://www.borgbackup.org/
Other
10.74k stars 734 forks source link

what is EBUSY? #8123

Closed ThomasWaldmann closed 4 months ago

ThomasWaldmann commented 4 months ago

In #126, there was a mention of EBUSY.

Not familiar with this, when exactly can a file be "busy"?

Is this a platform specific thing?

How to deal with this for backup source files?

infectormp commented 4 months ago

EBUSY Device or resource busy (POSIX.1-2001) https://pubs.opengroup.org/onlinepubs/9699919799/functions/V2_chap02.html#tag_15_03

[EBUSY] Resource busy. An attempt was made to make use of a system resource that is not currently available, as it is being used by another process in a manner that would have conflicted with the request being made by this process.

infectormp commented 4 months ago

https://www.gnu.org/software/libc/manual/html_node/Error-Codes.html

Macro: int EBUSY “Device or resource busy.” A system resource that can’t be shared is already in use. For example, if you try to delete a file that is the root of a currently mounted filesystem, you get this error.

infectormp commented 4 months ago

https://linux.die.net/HOWTO/SCSI-Generic-HOWTO/open.html https://linux.die.net/HOWTO/SCSI-Generic-HOWTO/errors.html

ThomasWaldmann commented 4 months ago

8127 #8128