renovate[bot]
f29f7ad5ae
chore(deps): update rust crate xattr to v1.4.0
2025-01-05 20:09:52 +00:00
Tuomas Tynkkynen
ca574b49d3
fsfreeze: Add tool
...
Add fsfreeze, a Linux-specific tool used to freeze/thaw writes to a
filesystem. It's an extremely simple tool so this should have full
feature-parity.
2025-01-04 15:26:19 +02:00
Tuomas Tynkkynen
257d142a5b
Cargo.toml: Add linux-raw-sys
...
This is needed for ioctl numbers for many of the tools.
2025-01-04 14:24:57 +02:00
Goffredo Baroncelli
98ef2d7f82
dmesg: add support of reading from /dev/kmesg
...
In order to properly read from /dev/kmsg, we need [*]:
1) open /dev/kmsg with O_NONBLOCK
2) handle the EAGAIN/WouldBlock error as end of records
3) treat '\n' (and not '\0') as record separator.
4) do lseek(fd, 0, SEEK_DATA)
Because Windows doesn't support O_NONBLOCK and SEEK_DATA, we had protect
these code with #[cfg(not(target_os = "windows"))]. Moreover because
Windows doesn't have /dev/kmsg, it is mandatory to use the '-K' switch.
[*] https://www.kernel.org/doc/Documentation/ABI/testing/dev-kmsg
2025-01-03 11:20:02 +01:00
Daniel Hofstetter
d73caec642
Merge pull request #178 from uutils/renovate/tempfile-3.x-lockfile
...
chore(deps): update rust crate tempfile to v3.15.0
2025-01-03 07:00:12 +01:00
renovate[bot]
4516c0917b
chore(deps): update rust crate tempfile to v3.15.0
2025-01-02 23:35:55 +00:00
Goffredo Baroncelli
f878075a74
dmesg: add the field record separator to the the struct dmesg
...
Add the field kmsg_record_separator to the struct Dmesg so it can be
changed from \0 to \n when dmesg reads from a file.
2025-01-02 17:03:11 +01:00
Daniel Hofstetter
f94d7c1d89
Merge pull request #176 from uutils/renovate/serde-monorepo
...
chore(deps): update rust crate serde to v1.0.217
2024-12-28 06:59:22 +01:00
renovate[bot]
6f3b2cfbae
chore(deps): update rust crate serde to v1.0.217
2024-12-27 23:04:48 +00:00
Daniel Hofstetter
2019630ff0
Merge pull request #175 from uutils/renovate/sysinfo-0.x-lockfile
...
chore(deps): update rust crate sysinfo to v0.33.1
2024-12-27 16:24:07 +01:00
renovate[bot]
1f240f8995
chore(deps): update rust crate sysinfo to v0.33.1
2024-12-27 15:17:20 +00:00
Daniel Hofstetter
3d02a0fc53
Merge pull request #174 from uutils/renovate/serde_json-1.x-lockfile
...
chore(deps): update rust crate serde_json to v1.0.134
2024-12-22 10:24:34 +01:00
renovate[bot]
ffb8756313
chore(deps): update rust crate serde_json to v1.0.134
2024-12-21 19:35:05 +00:00
Daniel Hofstetter
3ad5221c79
Merge pull request #173 from uutils/renovate/libc-0.x-lockfile
...
chore(deps): update rust crate libc to v0.2.169
2024-12-19 07:18:32 +01:00
renovate[bot]
5f6cae5d8b
chore(deps): update rust crate libc to v0.2.169
2024-12-19 06:12:59 +00:00
Daniel Hofstetter
cf4126410a
Merge pull request #172 from uutils/renovate/clap_complete-4.x-lockfile
...
chore(deps): update rust crate clap_complete to v4.5.40
2024-12-18 07:01:43 +01:00
renovate[bot]
7df5d4112e
chore(deps): update rust crate clap_complete to v4.5.40
2024-12-17 21:43:00 +00:00
Daniel Hofstetter
2e18401d6e
Merge pull request #171 from uutils/renovate/clap_complete-4.x-lockfile
...
fix(deps): update rust crate clap_complete to v4.5.39
2024-12-17 07:05:35 +01:00
renovate[bot]
b4cdde2d06
fix(deps): update rust crate clap_complete to v4.5.39
2024-12-16 20:00:40 +00:00
Daniel Hofstetter
7c7809ec99
Merge pull request #167 from fuad1502/dmesg-filter
...
Support `dmesg` filtering options (`--facility`, `--level`, `--since`, and `--until` options).
2024-12-15 14:43:43 +01:00
Fuad Ismail
e6364af9c6
dmesg: parse unknown facility and level as an Unknown.
2024-12-15 02:33:28 +07:00
Fuad Ismail
5a333b463e
dmesg: remove unnecessary 'remove_enclosing_quotes' function.
2024-12-14 22:28:27 +07:00
Fuad Ismail
d5b2f3c7e1
tests/dmesg: remove enclosing quotes surrounding since and until option arguments.
2024-12-14 22:27:54 +07:00
Fuad Ismail
5335f1bc2b
dmesg: simplify expression.
...
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2024-12-14 11:43:39 +07:00
Sylvestre Ledru
a84726cfcb
Merge pull request #159 from cakebaker/bump_tabled
...
Bump `tabled` and adapt `lsmem` to a renamed struct
2024-12-13 17:41:00 +01:00
Fuad Ismail
9e99aad01b
dmesg: support single quoted argument for since/until options.
2024-12-12 13:17:57 +07:00
Fuad Ismail
260cfbfd55
tests/dmesg: test since/until argument enclosed with single quotes.
2024-12-12 13:17:29 +07:00
Fuad Ismail
d24b1e5c59
tests/dmesg: add invalid level/facility argument test.
2024-12-12 13:05:57 +07:00
Fuad Ismail
d3b82aa376
tests/dmesg: handle fixture line endings when fixture is checked out on Windows.
2024-12-12 12:59:35 +07:00
Fuad Ismail
b90751119d
tests/dmesg: use fixed offset time argument in test.
2024-12-12 12:54:58 +07:00
Fuad Ismail
48c4f78088
dmesg: set to fixed timezone in test.
2024-12-11 15:48:51 +07:00
Fuad Ismail
a35c00b0e4
dmesg: implement since/until filter.
2024-12-11 14:48:45 +07:00
Daniel Hofstetter
cab4a3c6de
Merge pull request #170 from uutils/renovate/serde-monorepo
...
chore(deps): update rust crate serde to v1.0.216
2024-12-11 07:04:15 +01:00
Fuad Ismail
c7ff9cd553
dmesg: modify is_record_in_set to accept Option.
2024-12-11 12:04:15 +07:00
renovate[bot]
3d737b2a62
chore(deps): update rust crate serde to v1.0.216
2024-12-11 04:45:49 +00:00
Fuad Ismail
fb77a356ca
dmesg: parse since/until option values.
2024-12-11 11:32:45 +07:00
Fuad Ismail
99693490b0
tests/dmesg: add since/until invalid time test.
2024-12-11 11:04:50 +07:00
Fuad Ismail
8cd9f9d89f
dmesg: add since/until options.
2024-12-11 10:42:07 +07:00
Fuad Ismail
4dbcceede4
tests/dmesg: add since/until test & fixture.
2024-12-11 10:32:37 +07:00
Daniel Hofstetter
6d78aa177f
Merge pull request #169 from uutils/renovate/chrono-0.x-lockfile
...
fix(deps): update rust crate chrono to v0.4.39
2024-12-09 16:16:21 +01:00
Daniel Hofstetter
e72941d41c
Merge pull request #168 from uutils/renovate/libc-0.x-lockfile
...
chore(deps): update rust crate libc to v0.2.168
2024-12-09 16:15:45 +01:00
renovate[bot]
07a7608a31
fix(deps): update rust crate chrono to v0.4.39
2024-12-09 15:08:14 +00:00
renovate[bot]
2a9b3a17c4
chore(deps): update rust crate libc to v0.2.168
2024-12-09 15:08:08 +00:00
Fuad Ismail
07e01a5276
dmesg: cache record regex.
2024-12-09 17:59:48 +07:00
Fuad Ismail
e5ee286c7a
dmesg: implement level & facility filters.
2024-12-09 17:59:48 +07:00
Fuad Ismail
db42f300b0
dmesg: add facility & level argument.
2024-12-09 17:59:47 +07:00
Fuad Ismail
db9b3433bc
tests/dmesg: add facility and level filter tests.
2024-12-09 17:53:43 +07:00
Fuad Ismail
6adabf4e7d
dmesg: use RecordIterator for Dmesg print.
2024-12-09 17:53:41 +07:00
Fuad Ismail
2f803ceae3
dmesg: implement RecordIterator.
2024-12-07 09:27:21 +07:00
Daniel Hofstetter
dd76c2aff7
Merge pull request #166 from uutils/renovate/clap-4.x-lockfile
...
chore(deps): update rust crate clap to v4.5.23
2024-12-06 07:07:51 +01:00