36 Commits

Author SHA256 Message Date
ab26789f08 Accepting request 1327301 from Virtualization
Update the _service file and add the _servicedata file for easy updates using source services. No code change.

OBS-URL: https://build.opensuse.org/request/show/1327301
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/mdevctl?expand=0&rev=13
2026-01-15 15:43:51 +00:00
e3c942a6fc - Fix up the source services files to function by updating the
_service file and adding a _servicedata file.

OBS-URL: https://build.opensuse.org/package/show/Virtualization/mdevctl?expand=0&rev=34
2026-01-14 21:32:22 +00:00
8e5cd79a78 Accepting request 1326395 from Virtualization
Convert vendor.tar.gz to vendor.tar.zst to reduce the size of the tarball (jsc#PED-14625)

OBS-URL: https://build.opensuse.org/request/show/1326395
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/mdevctl?expand=0&rev=12
2026-01-12 11:38:43 +00:00
f48c0b0e3c Add missing BuildRequires to spec file.
OBS-URL: https://build.opensuse.org/package/show/Virtualization/mdevctl?expand=0&rev=32
2026-01-09 18:03:50 +00:00
562efb58ec - Convert vendor.tar.gz to vendor.tar.zst
OBS-URL: https://build.opensuse.org/package/show/Virtualization/mdevctl?expand=0&rev=31
2026-01-09 17:21:27 +00:00
794d77d27f - Convert vendor.tar.gz to vendor.tar.rst to reduce the size of the
tarball (jsc#PED-14625)

OBS-URL: https://build.opensuse.org/package/show/Virtualization/mdevctl?expand=0&rev=30
2026-01-09 17:16:30 +00:00
6c02052e27 Revert the last commit
OBS-URL: https://build.opensuse.org/package/show/Virtualization/mdevctl?expand=0&rev=29
2026-01-08 21:28:10 +00:00
397f22d4df - Improve logging so that the file and line number is included in
the log messages (jsc#PED-14625)

OBS-URL: https://build.opensuse.org/package/show/Virtualization/mdevctl?expand=0&rev=28
2026-01-08 21:18:40 +00:00
327c2cb409 - Improve logging (jsc#PED-14625)
049-Improve-logging.patch

OBS-URL: https://build.opensuse.org/package/show/Virtualization/mdevctl?expand=0&rev=27
2026-01-08 21:17:24 +00:00
7eaa556116 Accepting request 1291296 from Virtualization
OBS-URL: https://build.opensuse.org/request/show/1291296
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/mdevctl?expand=0&rev=11
2025-07-09 15:26:21 +00:00
4b3379d828 Accepting request 1291295 from home:anag_factory:Factory
- Update vendor.tar.gz and Cargo.lock (boo#1244560)

OBS-URL: https://build.opensuse.org/request/show/1291295
OBS-URL: https://build.opensuse.org/package/show/Virtualization/mdevctl?expand=0&rev=25
2025-07-08 14:11:28 +00:00
5eb577b467 Accepting request 1246014 from Virtualization
OBS-URL: https://build.opensuse.org/request/show/1246014
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/mdevctl?expand=0&rev=10
2025-02-16 21:36:44 +00:00
b6b428ce96 Accepting request 1244993 from home:pgajdos
- Update to version 1.4.0:
  * tests: Print error in assert_result()
  * Improve failure message for live update
  * Check sysfs data UUID in set_sysfs_data()
  * Rename is_sysfs_data_matching() to sysfs_data_matches()
  * Rename load_with_mdev() to load_for_mdev()
  * tests: removing unnecessary chaining
  * Remove MDevSysfsData::active
  * rustify define_command_helper
  * add ability to trigger CI manually
  * mdev: MDevSysfsData.load() without path.exists() check

OBS-URL: https://build.opensuse.org/request/show/1244993
OBS-URL: https://build.opensuse.org/package/show/Virtualization/mdevctl?expand=0&rev=23
2025-02-14 20:28:27 +00:00
dfc77f01fe Accepting request 1207268 from Virtualization
OBS-URL: https://build.opensuse.org/request/show/1207268
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/mdevctl?expand=0&rev=9
2024-10-13 15:33:08 +00:00
8123a43d0f Accepting request 1207267 from home:ccrane:branches:Virtualization
- Spec: Update to use latest rust packaging tooling. Switch to obs_scm
    service, remove cargo_audit service and cargo_config as it's now 
    handled by the cargo_vendor service. Cleanup spec file to use 
    cargo-packaging tooling where applicable.

OBS-URL: https://build.opensuse.org/request/show/1207267
OBS-URL: https://build.opensuse.org/package/show/Virtualization/mdevctl?expand=0&rev=21
2024-10-11 15:10:22 +00:00
b544560741 Accepting request 1146259 from Virtualization
OBS-URL: https://build.opensuse.org/request/show/1146259
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/mdevctl?expand=0&rev=8
2024-02-15 19:58:42 +00:00
a512dc450d Accepting request 1146258 from home:jfehlig:branches:Virtualization
- Add /usr/lib/mdevctl/scripts.d/{callouts,notifiers} directories

OBS-URL: https://build.opensuse.org/request/show/1146258
OBS-URL: https://build.opensuse.org/package/show/Virtualization/mdevctl?expand=0&rev=19
2024-02-12 18:25:41 +00:00
f37a4b329a Accepting request 1142598 from Virtualization
OBS-URL: https://build.opensuse.org/request/show/1142598
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/mdevctl?expand=0&rev=7
2024-01-30 17:24:14 +00:00
8f2029ad9b Accepting request 1141334 from home:jfehlig:branches:Virtualization
- Update to version 1.3.0 (jsc#PED-4981):
  * tests: add tests for live and defined support
  * doc: document live support and its options
  * cli: add live and defined parameters to modify command
  * callouts: add callout live event support
  * main: refactor jsonfile loading
  * main: refactor getting active devices
  * tests: add callout versioning tests
  * callouts: add warning for unknown supported actions and events
  * callouts: prevent repeating unsuccessful script searches
  * callouts: add versioning on callout scripts
  * callouts: make callout method reusable
  * callouts: add a check_result_fn to invoke_first_matching_script
  * Fix new clippy warnings
  * Cargo.toml: move tempfile to dev-dependencies
  * main: assemble active devices without overwriting
  * mdevctl.spec.in: Add systemd as build requirement
  * callout: ignore broken pipe on stdin
  * cli: improve lsmdev help
  * callouts: set script in callout on success only
  * main: fix file open error being suppressed
  * Fix clippy warning for useless vec
  * callouts: replace negated check and improve msgs
  * callouts: improve debug messages in get_attributes
  * callouts: match code format in Display for Event and Action
  * tests/callouts: make scripts cross distro compliant
  * actions: update release action to newer versions
  * Bump clap to 4.0
  * Bump env_logger dependency to 0.9.0
  * Fix deprecated github actions

OBS-URL: https://build.opensuse.org/request/show/1141334
OBS-URL: https://build.opensuse.org/package/show/Virtualization/mdevctl?expand=0&rev=17
2024-01-29 17:08:29 +00:00
bc5c816085 Accepting request 1042231 from Virtualization
OBS-URL: https://build.opensuse.org/request/show/1042231
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/mdevctl?expand=0&rev=6
2022-12-13 17:54:32 +00:00
3477bf29e2 Accepting request 1042199 from home:dirkmueller:Factory
- Update to version 1.2.0:
  * Port CLI to clap v3
  * start: provide useful hint for parent with wrong case
  * tests: Add ability to test error messages
  * tests: extract function for checking pass/fail expectations
  * MDev::create() does not need to be public
  * Fix new clippy warning

OBS-URL: https://build.opensuse.org/request/show/1042199
OBS-URL: https://build.opensuse.org/package/show/Virtualization/mdevctl?expand=0&rev=15
2022-12-12 02:07:01 +00:00
e8463c823c Accepting request 963778 from Virtualization
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/963778
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/mdevctl?expand=0&rev=5
2022-03-24 21:56:48 +00:00
a9d6787d6f - spec: BuildRequires python3-docutils instead of all python
flavors of the docutils module

OBS-URL: https://build.opensuse.org/package/show/Virtualization/mdevctl?expand=0&rev=13
2022-03-14 19:36:19 +00:00
bcce6612a2 Accepting request 961113 from Virtualization
OBS-URL: https://build.opensuse.org/request/show/961113
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/mdevctl?expand=0&rev=4
2022-03-14 18:35:06 +00:00
d260f8ceb0 Accepting request 961112 from home:jfehlig:branches:Virtualization
- spec: Add /etc/mdevctl.d/scripts.d directory to %files

OBS-URL: https://build.opensuse.org/request/show/961112
OBS-URL: https://build.opensuse.org/package/show/Virtualization/mdevctl?expand=0&rev=11
2022-03-11 17:32:35 +00:00
4fee77b915 Accepting request 960795 from home:ptesarik:branches:Virtualization
- Update to version v1.1.0 (jsc#SLE-18449):
  * use imported std::env for CARGO_PKG_VERSION in build.rs directly
  * fix build.rs to allow specify exact path or name of the rst2man
  *  Don't call unnecessary to_string()
  * Report a useful error when /etc/mdevctl.d doesn't exist
  * Handle FS permissions problems for defined devices
  * Fix needless borrow warning from clippy
  * tests: read stdin in callout test scripts
  * Report root error when a callout can't be executed
  * Don't emit warning for files in /etc/mdevctl.d/scripts.d
  * env: add function to get base scripts directory

OBS-URL: https://build.opensuse.org/request/show/960795
OBS-URL: https://build.opensuse.org/package/show/Virtualization/mdevctl?expand=0&rev=10
2022-03-10 18:11:58 +00:00
ae400e0186 Accepting request 906516 from Virtualization
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/906516
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/mdevctl?expand=0&rev=3
2021-07-18 21:44:46 +00:00
682f23abf4 update mdevctl to version 0.81
OBS-URL: https://build.opensuse.org/package/show/Virtualization/mdevctl?expand=0&rev=9
2021-07-08 17:42:02 +00:00
2c563775da Accepting request 854165 from Virtualization
- Update to version 0.78:
  * Automatic version commit for tag 0.78
  * use standard bash path
  * avoid other tags spilling into the .spec changelog
  * mdevctl: fix cleanup on error when creating and removing mdev
  * version support
  * Fix attributes getting applied via start-parent-mdevs
  * mdevctl: fix cleanup on error when writing to attribute
  * Remove never used 'available' option
  * Fix attribute validation
  jsc#SLE-15861, bsc#1179770

OBS-URL: https://build.opensuse.org/request/show/854165
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/mdevctl?expand=0&rev=2
2020-12-10 14:57:09 +00:00
f0a09fa992 add jira and bugzilla numbers to changelog
OBS-URL: https://build.opensuse.org/package/show/Virtualization/mdevctl?expand=0&rev=7
2020-12-08 23:59:56 +00:00
165afe63be update mdevctl to latest release
OBS-URL: https://build.opensuse.org/package/show/Virtualization/mdevctl?expand=0&rev=6
2020-12-08 23:33:33 +00:00
f6adc4d74f Accepting request 818405 from Virtualization
Initial packaging of mdevctl utility. It will be used by the
libvirt node device driver to manage mediated devices for use
in virtual machines.

OBS-URL: https://build.opensuse.org/request/show/818405
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/mdevctl?expand=0&rev=1
2020-07-04 23:14:24 +00:00
08385ed150 more spec file cleanup
OBS-URL: https://build.opensuse.org/package/show/Virtualization/mdevctl?expand=0&rev=4
2020-07-02 20:01:40 +00:00
4cc40c1f4d Accepting request 818395 from home:namtrac:branches:Virtualization
Run spec-cleaner, no changelog because it's not in Factory yet and this is aesthetics only.

OBS-URL: https://build.opensuse.org/request/show/818395
OBS-URL: https://build.opensuse.org/package/show/Virtualization/mdevctl?expand=0&rev=3
2020-07-02 19:53:32 +00:00
37725e1570 fix some typos in the spec file description
OBS-URL: https://build.opensuse.org/package/show/Virtualization/mdevctl?expand=0&rev=2
2020-07-02 17:51:54 +00:00
010e55019e Accepting request 818390 from home:jfehlig:branches:Virtualization
Initial packaging of mdevctl

OBS-URL: https://build.opensuse.org/request/show/818390
OBS-URL: https://build.opensuse.org/package/show/Virtualization/mdevctl?expand=0&rev=1
2020-07-02 17:40:36 +00:00