Commit graph

12578 commits

Author SHA1 Message Date
Ben Wiederhake
a1ad751aa9 truncate: deduplicate fifo check, fix handling of missing files
The fifo check used to include 'metadata(filename)?', which would error
if the file does not exist. In our case however, this is not an error.
2024-03-23 17:50:39 +01:00
Ulrich Hornung
066032b1d3
apply different reference sizes for f2fs (android) case 2024-03-23 16:54:19 +01:00
Ulrich Hornung
174e9a0af9
add documentation 2024-03-23 16:51:12 +01:00
Ulrich Hornung
f3bbf53412
improve debug info provided by CI 2024-03-23 16:36:01 +01:00
Daniel Hofstetter
cec981350a
Merge pull request #6086 from sylvestre/shred-v
shred: some small improvements
2024-03-23 15:26:38 +01:00
Daniel Hofstetter
ecf9075904
Merge pull request #6107 from uutils/renovate/regex-1.x
chore(deps): update rust crate regex to 1.10.4
2024-03-23 15:12:23 +01:00
Ben Wiederhake
a3ab064f35 truncate: don't error in --no-create with reference case 2024-03-23 13:57:16 +01:00
Ben Wiederhake
4fcf912c85 truncate: remove two-year-old file-creation todos
In commit 129cfe12b8
2024-03-23 13:57:15 +01:00
Daniel Hofstetter
ca3037de87
Merge pull request #6093 from uutils/sylvestre-patch-3
Adjust the link to the doc
2024-03-23 13:44:44 +01:00
renovate[bot]
df3f9bbeec
chore(deps): update rust crate regex to 1.10.4 2024-03-23 12:35:14 +00:00
Ulrich Hornung
a35dafcd30 consider "fullblock" cmd line arg also for block writes 2024-03-23 12:22:58 +01:00
Ulrich Hornung
a626899416 reduce cognitive complexity by splitting away part of dd_copy 2024-03-23 12:22:58 +01:00
Ulrich Hornung
43b2b3fbaa handle SIGUSR1 directly. not just every 1sec 2024-03-23 12:22:58 +01:00
Sylvestre Ledru
6d89f96d86 shred: only run zero when the file isn't empty 2024-03-23 12:22:32 +01:00
Sylvestre Ledru
cf3fe0e566 shred: small improv on the tests 2024-03-23 12:22:32 +01:00
Sylvestre Ledru
bb5111cc71 shred: fails in case of permissions issue 2024-03-23 12:22:32 +01:00
Sylvestre Ledru
844f077401 shred: as we already got the metadata info, use it directly 2024-03-23 12:22:32 +01:00
Sylvestre Ledru
f410d0967f shred: if the file is empty, don't run passes on it 2024-03-23 12:22:32 +01:00
Sylvestre Ledru
322c2b4df6 shred: simplify the code
The formatting directive {:2.0} will handle both cases (single-digit and double-digit numbers)
by ensuring at least two characters wide with no decimal places
2024-03-23 12:22:32 +01:00
Sylvestre Ledru
88ff42e840
Merge pull request #6102 from Krysztal112233/main
lint: fix lints of new Rust version
2024-03-23 12:21:03 +01:00
Krysztal112233
29d14cba51
lint: fix unused_imports on freebsd target. 2024-03-23 17:23:22 +08:00
Sylvestre Ledru
06e80c7af1
Merge pull request #6105 from cre4ture/fix/findings_for_env_string_args
Fix/findings for env string args
2024-03-23 10:17:14 +01:00
Sylvestre Ledru
fa1850c7df
Merge pull request #6104 from cakebaker/more_fix_incorrect_tests
more: fix two incorrect tests
2024-03-23 10:14:52 +01:00
Krysztal112233
a61761f090
util: fix compile failed on Windows.
Use  `std::path::MAIN_SEPARATOR_STR` instead of `std::path::MAIN_SEPARATOR`
2024-03-23 17:13:07 +08:00
Krysztal112233
6f5dfa3c46
lint: fix unused_imports of util.rs 2024-03-23 17:02:32 +08:00
Krysztal112233
1484d06887
lint: fix clippy::manual_main_separator_str for util.rs on Windows cfg. 2024-03-23 16:56:43 +08:00
Krysztal112233
d21dc125d0
lint: fix clippy::suspicious_open_options of project. 2024-03-23 16:49:35 +08:00
Ulrich Hornung
30d61d8a97
extract more functions for run_env() 2024-03-22 23:06:35 +01:00
Ulrich Hornung
59df0b8fb8
replace comment with extracted function 2024-03-22 22:36:57 +01:00
Ulrich Hornung
4c1e68c9f4
replace comment with extracted function 2024-03-22 22:34:05 +01:00
Ulrich Hornung
526cc8846c
extract functions blocks to reduce cognitive complexity 2024-03-22 22:17:48 +01:00
Daniel Hofstetter
5e6fa49ef5 more: fix incorrect tests 2024-03-22 15:13:53 +01:00
Krysztal112233
ef8c379370
lint: fix clippy::redundant_clone of test_dd.rs test_cp.rs 2024-03-22 17:38:54 +08:00
Krysztal112233
35c39a65e5
Merge branch 'uutils:main' into main 2024-03-22 16:48:47 +08:00
Sylvestre Ledru
d9b2fec43d
Merge pull request #6101 from hanbings/main
add 0xDE flag to support zfs file system.
2024-03-21 19:21:25 +01:00
Krysztal112233
48e376e1e0
lint: allow clippy::suspicious_open_options in sort.rs 2024-03-22 00:42:33 +08:00
Krysztal112233
2b5e7caf8b
lint: fix clippy::manual_str_repeat in parse_glob.rs 2024-03-22 00:02:04 +08:00
Krysztal112233
fd3640482b
lint: fix clippy::unnecessary_to_owned in test_cksum.rs 2024-03-21 23:56:40 +08:00
Krysztal112233
ee09f276a4
lint: fix clippy::useless_format in test_cksum.rs 2024-03-21 23:55:36 +08:00
Krysztal112233
eb3fac3567
lint: fix clippy::needless_borrows_for_generic_args in perms.rs 2024-03-21 23:54:37 +08:00
Krysztal112233
b66d6dffcf
lint: fix clippy::needless_borrows_for_generic_args in perms.rs 2024-03-21 23:53:32 +08:00
Krysztal112233
72b7266f71
lint: allow clippy::needless_borrow in perms.rs 2024-03-21 23:50:23 +08:00
Krysztal112233
0bb179311d
lint: fix clippy::bool_assert_comparison in perms.rs 2024-03-21 23:47:57 +08:00
Krysztal112233
63d92cdbda
lint: fix clippy::useless_vec in unit_tests.rs 2024-03-21 23:46:24 +08:00
Krysztal112233
21d6eab847
lint: fix lint clippy::suspicious_open_options 2024-03-21 23:36:48 +08:00
hanbings
c35c96f127
Merge branch 'main' into main 2024-03-21 22:57:20 +08:00
hanbings
30452ced73
Add 0xDE flag to to support zfs file system. 2024-03-21 22:20:31 +08:00
Daniel Hofstetter
77a67559eb
Merge pull request #5966 from Ideflop/more-implement-argument-pattern
More implement argument pattern
2024-03-21 10:51:31 +01:00
Sylvestre Ledru
f14aa8108b
Merge pull request #6099 from cre4ture/fix/android_od_test_f16
test_od - re-enable f16 test with newer AVD system image
2024-03-21 08:45:47 +01:00
Ulrich Hornung
89110abe97
test_od - re-enable f16 test with newer AVD system image 2024-03-20 23:33:06 +01:00