Jeffrey Finkelstein
bd18a2a344
dd: support the [io]flag=nocache option
...
Add support for the `iflag=nocache` and `oflag=nocache` to make `dd`
discard the filesystem cache for the processed portion of the input or
output file.
2023-05-07 11:43:13 -04:00
Jeffrey Finkelstein
cc2f97ba0d
dd: add discard_cache() funcs for Input, Output
...
Add the `Input::discard_cache()` and `Output::discard_cache()`
functions. These allow discarding the filesystem cache when `dd` no
longer needs to access a specified portion of the input or output
file, respectively.
2023-05-07 11:43:13 -04:00
Jeffrey Finkelstein
12e4acaec3
dd: add bytes_total to ReadStat
...
Add the `bytes_total` field to the `ReadStat` struct. This lets the
main loop of `dd` keep track of the total number of bytes read.
2023-05-07 11:43:13 -04:00
Sylvestre Ledru
00e1bbea33
Merge pull request #4839 from sylvestre/clippy
...
Fix some semicolon_if_nothing_returned
2023-05-07 09:55:29 +02:00
Sylvestre Ledru
aed607f443
Merge pull request #4838 from uutils/renovate/zip-0.x
...
chore(deps): update rust crate zip to 0.6.5
2023-05-06 23:17:23 +02:00
Sylvestre Ledru
e23bad1d4a
Merge pull request #4840 from uutils/renovate/libc-0.x
...
fix(deps): update rust crate libc to 0.2.143
2023-05-06 23:16:51 +02:00
renovate[bot]
214c027cfa
fix(deps): update rust crate libc to 0.2.143
2023-05-06 19:01:14 +00:00
Sylvestre Ledru
9dc8bc83a6
Merge pull request #4837 from m11o/tty-move-strings-to-md-file
...
tty: move help strings to markdown file
2023-05-06 19:51:23 +02:00
Sylvestre Ledru
b94d10f080
Fix some semicolon_if_nothing_returned
2023-05-06 19:35:44 +02:00
renovate[bot]
cad73d2ed3
chore(deps): update rust crate zip to 0.6.5
2023-05-06 16:29:49 +00:00
Daniel Hofstetter
93f28dacc0
Merge pull request #4834 from sylvestre/cognitive_complexity
...
Lower the clippy cognitive complexity & fix lines_filter_map_ok
2023-05-06 17:48:23 +02:00
Sylvestre Ledru
9ed7ac1481
Merge pull request #4826 from cakebaker/mv_4795
...
mv: if more than one of -i, -f, -n is specified, only the final one takes effect
2023-05-06 17:35:02 +02:00
m11o
1ac31ccfa0
tty: move help strings to markdown file
2023-05-07 00:27:16 +09:00
Daniel Hofstetter
5d2ea7ada7
Merge pull request #4835 from sylvestre/nextest
...
android: try to use nextest again
2023-05-06 16:58:02 +02:00
Sylvestre Ledru
d441d71aac
Merge pull request #4829 from m11o/tsort-move-strings-to-md-file
...
tsort: move help strings to markdown file
2023-05-06 14:55:49 +02:00
Sylvestre Ledru
cd688662ec
fix some lines_filter_map_ok clippy warnings
2023-05-06 14:53:42 +02:00
Sylvestre Ledru
f8d7bebed3
ignore some cognitive_complexity for now
2023-05-06 14:50:55 +02:00
Sylvestre Ledru
e35d477a8c
change the cognitive_complexity to a lower value
2023-05-06 14:50:40 +02:00
Daniel Hofstetter
40aaae003e
mv: improve help text
...
Co-authored-by: Sylvestre Ledru <sledru@mozilla.com>
2023-05-06 13:25:35 +02:00
Daniel Hofstetter
f19385c701
Merge pull request #4830 from uutils/renovate/sha3-0.x
...
chore(deps): update rust crate sha3 to 0.10.8
2023-05-06 13:16:53 +02:00
Sylvestre Ledru
ada1df2e8e
android: try to use nextest again
2023-05-06 10:50:04 +02:00
Sylvestre Ledru
8f4367c3bc
to make it clearer
2023-05-06 10:32:18 +02:00
Sylvestre Ledru
ea26719e9a
Merge pull request #4828 from cakebaker/cp_fix_help_output
...
cp: fix "after help" output
2023-05-05 22:21:26 +02:00
renovate[bot]
55071b9ad5
chore(deps): update rust crate sha3 to 0.10.8
2023-05-05 19:32:32 +00:00
m11o
94daed8afb
tsort: move help strings to markdown file
2023-05-06 00:34:55 +09:00
Daniel Hofstetter
4481604f87
cp: fix "after help" output
2023-05-05 16:12:34 +02:00
Daniel Hofstetter
ea2b725abb
mv: fix help output
2023-05-05 15:17:37 +02:00
Daniel Hofstetter
93c8623da9
mv: if more than one of -i, -n, -f, latest "wins"
2023-05-05 15:17:37 +02:00
Daniel Hofstetter
4ee1118061
Merge pull request #4823 from shinhs0506/mv-i-dir-file
...
fix tests/mv/i-5.sh
2023-05-04 13:43:05 +02:00
John Shin
84567336a8
mv: update test case so it doesn't fail
2023-05-03 23:54:28 -07:00
Daniel Hofstetter
616a166e36
Merge pull request #4820 from sylvestre/thru-dangling-2
...
cp: fix cp -f f loop when loop is a symlink loop
2023-05-04 08:20:57 +02:00
Daniel Hofstetter
249b80abff
Merge pull request #4824 from m11o/fix-chgrp-markdown-file
...
fix help message in chgrp
2023-05-04 07:57:46 +02:00
m11o
a822890939
fix help message in chgrp
2023-05-04 08:41:56 +09:00
John Shin
1c8aac0883
mv: return err if response is negative when moving a dir to existing dest during an interactive mode
2023-05-03 16:05:21 -07:00
Sylvestre Ledru
832fd2d2c6
cp: fix cp -f f loop when loop is a symlink loop
...
Fix: tests/cp/thru-dangling.sh
2023-05-03 19:54:35 +02:00
Sylvestre Ledru
6547bec2ef
uucore/detect_symlink_loop: add a function to detect symlink loops
2023-05-03 19:54:33 +02:00
Daniel Hofstetter
a97199f72a
Merge pull request #4796 from shinhs0506/mv-cp-update
...
mv, cp: add support for --update=none,all,older
2023-05-03 15:21:21 +02:00
Daniel Hofstetter
923a62c6be
mv: fix function/file names in tests
2023-05-03 10:07:46 +02:00
Daniel Hofstetter
82eb04c5a9
Merge pull request #4777 from Joining7943/tail-change-text-static-to-const
...
'tail': Change static global variables to const
2023-05-03 09:31:34 +02:00
Sylvestre Ledru
aae3f2f99c
Ride along: fix some trivial clippy warnings
2023-05-02 23:22:39 +02:00
John Shin
898628fa3a
core: fix typo in update control
2023-05-02 13:54:31 -07:00
John Shin
8ad2fa3cc1
mv: write test for multiple update args
2023-05-02 13:46:43 -07:00
John Shin
918c36b485
cp: write test for multiple update args
2023-05-02 13:46:08 -07:00
John Shin
983fee0cea
cp: fix wrong test names for update
2023-05-02 13:35:52 -07:00
John Shin
c0e4e4f757
cp: simplify tests for update
2023-05-02 13:35:06 -07:00
John Shin
6a100976c7
mv: simplify tests for update
2023-05-02 13:30:38 -07:00
John Shin
3b8f3d04f4
core: remove unnecessary if statement in update control
2023-05-02 12:49:49 -07:00
Masahito Osako
90e0d3030f
test: move help strings to markdown file ( #4816 )
2023-05-02 21:48:59 +02:00
John Shin
460d346069
core: remove '' case for the update argument
2023-05-02 12:42:39 -07:00
John Shin
06d4603bea
core: fix typo in update control
2023-05-02 12:40:04 -07:00