Commit Graph

79 Commits

Author SHA1 Message Date
meo
bd8d447150
Test mac os (#53)
* add: test on MacOS

Add test for MacOS in Github action

Maybe see this to add test for FreeBSD :
https://github.com/marketplace/actions/freebsd-vm

* add: log to test

adding log to the test for better understanding

* fix: shellcheck

remove the yellow color that is unused in the test

* fix: fail on lower-casting

the `"${variable,,}"` seam to not work on macOS so y remove it for the `skip_hardlink_flag` because it's always lowercase

* fix: macOS

remove all the lower-case casting

* fix(perf): going to `stat` remove `lsattr` macOS

The command `lsattr` is not supported on macOS so I have remove it
switch to `stat` instead of `ls` for better performance and no subshell
use of parameter expansion with  `%` in place of `awk` for performance and no subshell

* fix: forgot to remove variable
2024-12-17 00:33:35 +01:00
meo
922531829e
refactor: add regularity to spaces (#52)
1) switch all the miscellaneous indentation to 4 spaces

2) remove the space before the parenthesis of function

3) add indentation inside of if

4) remove miscellaneous spaces at the end of lines
2024-12-14 02:13:11 +01:00
Moss Hope
4a6fb83c3d
freebsd and macos fixes (#44)
freebsd and macos share stat and sed history with some differences from
gnu

tested on freebsd and linux, mac just verified with man pages and stack
overflow

Co-authored-by: mosshope <moss@lararium.houseofdusk.online>
2024-10-04 19:07:04 +02:00
Karol Kozlowski
9cea80a9c7
Remove dependence on perl (#41)
* Remove dependence on perl

* Fix shellcheck SC2004

* Fix shellcheck SC2004
2024-08-29 17:06:00 +02:00
dependabot[bot]
6087250290
Bump docker/build-push-action from 5 to 6 (#39)
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 5 to 6.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v5...v6)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-18 22:41:47 +02:00
Oliver Conzen
15672d2a02
Remove extraneous flags (#38) 2024-06-17 03:17:41 +02:00
Markus Ressel
979edb265c
add --reflink=never to cp on linux (#34) 2023-11-11 11:08:36 +01:00
dependabot[bot]
d6cbeb3f40
Bump docker/build-push-action from 4 to 5 (#31)
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 4 to 5.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v4...v5)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-18 17:38:55 +02:00
dependabot[bot]
71684f1770
Bump docker/login-action from 2 to 3 (#30)
Bumps [docker/login-action](https://github.com/docker/login-action) from 2 to 3.
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/v2...v3)

---
updated-dependencies:
- dependency-name: docker/login-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-18 17:38:47 +02:00
dependabot[bot]
c7705ccde9
Bump docker/metadata-action from 4 to 5 (#29)
Bumps [docker/metadata-action](https://github.com/docker/metadata-action) from 4 to 5.
- [Release notes](https://github.com/docker/metadata-action/releases)
- [Upgrade guide](https://github.com/docker/metadata-action/blob/master/UPGRADE.md)
- [Commits](https://github.com/docker/metadata-action/compare/v4...v5)

---
updated-dependencies:
- dependency-name: docker/metadata-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-18 17:38:39 +02:00
Markus Ressel
4cc7eb9814 move stale.yml to correct location 2023-09-04 17:25:26 +02:00
dependabot[bot]
f478d95bf6
Bump actions/checkout from 3 to 4 (#27)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-04 17:21:22 +02:00
Gregory Zdanowski-House
2276727d6f
Add rebalancing start date (#25) 2023-09-04 17:21:11 +02:00
Gregory Zdanowski-House
709b1cc2c6
Update dependency documentation (#26)
The project no longer requires "bc", but instead relies on more common "perl" being preinstalled.
2023-09-04 17:19:54 +02:00
Kenneth Ballard
b550a57615
Using perl to generate the percent text. "bc" isn't available on TrueNAS SCALE. (#24) 2023-08-21 18:10:01 +02:00
Karl Henselin
8a76414b43
Update README.md (#23) 2023-07-21 00:13:26 +02:00
johnpyp
973855c049
--skip-hardlinks flag (#22)
* feat: --skip-hardlinks flag

Adds a --skip-hardlinks flag that will not process any files that have an active hardlink.

Without a pre-scan to identify hardlink targets and relink them after copies, all this would result in is duplication.
You'd then have to run another de-duplicator, which doesn't have knowledge of the balancing, and could arbitrarily undo
the balancing work.

* doc: .rebalance suffix -> .balance suffix

* doc: add --skip-hardlinks parameter to README

* test: add unit tests for --skip-hardlink
2023-06-16 16:36:43 +02:00
dependabot[bot]
3a96510387
Bump docker/build-push-action from 3 to 4 (#18)
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 3 to 4.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v3...v4)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-12 01:00:27 +01:00
Markus Ressel
5a4a8b0e34
Create dependabot.yml 2023-02-12 00:50:41 +01:00
Markus Ressel
9faf865850
Fix help string 2023-01-27 00:44:42 +01:00
Markus Ressel
c6790e7e94
Create stale.yml 2022-11-15 23:50:35 +01:00
Markus Ressel
19caa50d47
Update README.md 2022-11-15 23:37:01 +01:00
Markus Ressel
4fe2c08b24 added docker-latest github action 2022-11-15 23:35:09 +01:00
Markus Ressel
548c488782 added info about Dockerfile to README 2022-11-15 23:29:34 +01:00
Markus Ressel
bebe233371 added Dockerfile 2022-11-15 23:27:21 +01:00
Markus Ressel
0c74cfa468
Update README.md 2022-04-03 03:37:17 +02:00
Markus Ressel
d4019d1d2f
Update README.md 2022-04-02 23:04:16 +02:00
Markus Ressel
9a5788a5fa added section about logging to file 2022-03-29 04:11:01 +02:00
Markus Ressel
d62e6e0be7
added folder structure for testing (#7)
* added folder structure for testing
added testing.sh script
added testing github action

* delete rebalancing file for testing

* run multiple variants of the command

* fix "integer expression expected"

* added assertions

* output logged data
2022-03-29 04:02:13 +02:00
Markus Ressel
b5fcf1ad0c
-F, --fixed-strings PATTERNS are strings (#8)
-x, --line-regexp         match only whole lines
2022-03-29 03:41:31 +02:00
Markus Ressel
c8bbf5a3f4
Added note about snapshots 2021-01-07 14:43:15 +01:00
Markus Ressel
da3a6cb7de
removed whitespace 2021-01-06 21:12:31 +01:00
Markus Ressel
a20e73ad1c
added note about bc and root 2021-01-06 21:11:25 +01:00
Markus Ressel
7e44bd4b4f
use raw link 2021-01-06 21:04:20 +01:00
Markus Ressel
b624d415a3
added zpool list -v output 2021-01-06 21:01:57 +01:00
Markus Ressel
72b9ab5cc3
use curl instead of wget 2021-01-06 20:56:46 +01:00
Markus Ressel
f805188e3f
Update README.md 2020-08-01 03:41:28 +02:00
Markus Ressel
32eb6ed6cd
Update README.md 2020-08-01 03:40:25 +02:00
Markus Ressel
40ebafc233
ignore file if missing on disk (#5) 2020-07-31 16:09:45 +02:00
Markus Ressel
e212d3e1c5
Create shellcheck.yml (#4) 2020-07-31 16:02:03 +02:00
Markus Ressel
58c23b7206 Merge branch 'master' of github.com:markusressel/zfs-inplace-rebalancing 2020-07-31 15:57:18 +02:00
Markus Ressel
fbf83777fc ignore shellcheck warnings for ls 2020-07-31 15:57:12 +02:00
Markus Ressel
b16e13ad34
Update README.md 2020-07-31 05:31:05 +02:00
Markus Ressel
fe5dcece3b
Update README.md 2020-07-31 05:29:35 +02:00
Markus Ressel
dd60db0b60
Update README.md 2020-07-31 05:26:18 +02:00
Markus Ressel
290325ba26
Update README.md 2020-07-31 05:25:25 +02:00
Markus Ressel
92ae7179bc fixed passes parameter, added shorthands 2020-07-30 20:07:36 +02:00
Markus Ressel
1315fdf424 fixed passes parameter, added shorthands 2020-07-30 20:06:53 +02:00
Markus Ressel
85986300e7 fixed passes parameter, added shorthands 2020-07-30 20:06:14 +02:00
Markus Ressel
437a19b662 fixed passes parameter, added shorthands 2020-07-30 20:05:43 +02:00