| Summary: | etc/periodic/daily/100.clean-disks: Fix error (Directory not empty) when removing ports matching '*.core' | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Base System | Reporter: | Alexander Sheiko <adsh> | ||||
| Component: | conf | Assignee: | freebsd-bugs (Nobody) <bugs> | ||||
| Status: | Open --- | ||||||
| Severity: | Affects Some People | CC: | epopen, moto | ||||
| Priority: | --- | Keywords: | easy, needs-qa | ||||
| Version: | Unspecified | Flags: | koobs:
mfc-stable13?
|
||||
| Hardware: | Any | ||||||
| OS: | Any | ||||||
| See Also: | https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=41777 | ||||||
| Attachments: |
|
||||||
|
Description
Alexander Sheiko
2021-11-13 03:12:43 UTC
There is nothing terribly special about /usr/ports, there can be other places where *.core is a precious file or directory. So, the script should be extended with a notion of configurable excluded paths. Or, better yet, just don't use this script. I think that the idea that a certain name pattern would match only useless files globally can be dangerous. Configurable excluded paths is good idea. I use this script since FreeBSD 4.x and have no any problems before subject error. *** Bug 259906 has been marked as a duplicate of this bug. *** Configurable excluded paths is very good idea. I hit the problem also. Because MySQL using prefix of "#" as many file/directory name. And MySQL had been crash because critical files deleted by the feature. Unfortunately the problem of "#" can not modify. Thank very much. Hi All My workaround about this issue affects MySQL - rc=$(find / \( ! -fstype local -o -fstype rdonly \) -prune -o \ + rc=$(find / \( ! -fstype local -o -fstype rdonly -o -path '[MYSQL_DB_DIR]' -o -path '[OTHER_EXCLUDE_DIR]' \) -prune -o \ \( $args \) -atime +$daily_clean_disks_days \ |