summaryrefslogtreecommitdiff
path: root/src/basic/blockdev-util.c
Commit message (Collapse)AuthorAgeFilesLines
* blockdev-util: let us know if block_get_whole_disk() did anythingLennart Poettering2019-07-041-1/+1
|
* blockdev: filter out invalid block devices earlyLennart Poettering2019-07-041-0/+3
|
* blockdev-util: propagate actual errorLennart Poettering2019-07-041-2/+2
|
* tree-wide: replace strjoin() with path_join()Yu Watanabe2019-06-211-2/+2
|
* codespell: fix spelling errorsBen Boeckel2019-04-291-1/+1
|
* tree-wide: port various parts of the code to use parse_dev()Lennart Poettering2018-11-291-10/+12
|
* tree-wide: remove Lennart's copyright linesLennart Poettering2018-06-141-3/+0
| | | | | | | | | | | These lines are generally out-of-date, incomplete and unnecessary. With SPDX and git repository much more accurate and fine grained information about licensing and authorship is available, hence let's drop the per-file copyright notice. Of course, removing copyright lines of others is problematic, hence this commit only removes my own lines and leaves all others untouched. It might be nicer if sooner or later those could go away too, making git the only and accurate source of authorship information.
* tree-wide: drop 'This file is part of systemd' blurbLennart Poettering2018-06-141-2/+0
| | | | | | | | | | | | | | | | This part of the copyright blurb stems from the GPL use recommendations: https://www.gnu.org/licenses/gpl-howto.en.html The concept appears to originate in times where version control was per file, instead of per tree, and was a way to glue the files together. Ultimately, we nowadays don't live in that world anymore, and this information is entirely useless anyway, as people are very welcome to copy these files into any projects they like, and they shouldn't have to change bits that are part of our copyright header for that. hence, let's just get rid of this old cruft, and shorten our codebase a bit.
* blockdev: split out actual DM sysfs code of get_block_device_harder() into ↵Lennart Poettering2018-06-111-34/+31
| | | | | | | function of its own That way we can use it in code that already acquired a dev_t from some source.
* blockdev-util: let's initialize return parameter on successLennart Poettering2018-06-111-0/+1
| | | | | | | | We document the rule that return values >= 0 of functions are supposed to indicate success, and that in case of success all return parameters should be initialized. Let's actually do so. Just a tiny coding style fix-up.
* tree-wide: drop license boilerplateZbigniew Jędrzejewski-Szmek2018-04-061-13/+0
| | | | | | | | | | Files which are installed as-is (any .service and other unit files, .conf files, .policy files, etc), are left as is. My assumption is that SPDX identifiers are not yet that well known, so it's better to retain the extended header to avoid any doubt. I also kept any copyright lines. We can probably remove them, but it'd nice to obtain explicit acks from all involved authors before doing that.
* basic: split out blockdev-util.[ch] from util.hLennart Poettering2017-12-251-0/+199
With three functions it makes sense to split this out now.