1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-06 08:26:52 +03:00
Commit Graph

3016 Commits

Author SHA1 Message Date
Kay Sievers
3e18fb062f update configure and NEWS 2008-12-02 19:26:33 +01:00
Kay Sievers
caf4c97a2c scsi_id: do not fail if no serial is found like for optical drives 2008-12-02 19:23:38 +01:00
Kay Sievers
18c969a12b rules: ATA_COMPAT do not try to match on sr*, it will never have vendor ATA 2008-12-02 17:33:11 +01:00
Kay Sievers
ae52aa269e release 135 2008-12-02 02:35:48 +01:00
Kay Sievers
ae0f55cb86 update configure and NEWS 2008-12-02 01:10:24 +01:00
Kay Sievers
e2c9d3c36f fix network interface name swapping 2008-12-02 01:04:23 +01:00
Kay Sievers
4894330e26 rules: infiniband.rules -> 40-infiniband.rules 2008-11-28 03:34:03 +01:00
Piter PUNK
3101190851 rules: add usb device nodes 2008-11-28 02:01:51 +01:00
Kay Sievers
d5bdc83f3d rules: add infiniband rules 2008-11-28 01:46:38 +01:00
Kay Sievers
a4a2edb0ea rules: fix cciss disk/by-id/ links 2008-11-28 01:18:48 +01:00
Piter PUNK
453ca4f907 rules: /dev/null -> X0R
/dev/X0R        null            symbolic        Required by iBCS-2
Note: /dev/X0R is <letter X>-<digit 0>-<letter R>
2008-11-28 01:18:15 +01:00
Kay Sievers
aba31da054 usb_id: add "break" to currently unused case labels 2008-11-26 13:38:49 +01:00
Marcel Holtmann
62a7b2d5a5 usb_id: fix switch statement for video type
Introducing the video type, creating a fall-through case where other
devices might now be declared as type video.
2008-11-26 13:31:37 +01:00
Kay Sievers
74463b75fa release 134 2008-11-26 04:36:25 +01:00
Kay Sievers
b257afd0a2 rules: exclude "btibm" devices from vol_id calls 2008-11-25 17:25:14 +01:00
Matthias Schwarzott
1d698ef647 rules: Gentoo update 2008-11-25 17:13:07 +01:00
Kay Sievers
ae2d346642 silence PHYSDEV* warning for WAIT_FOR* rules 2008-11-24 21:24:04 +01:00
Kay Sievers
f408fd919a fix handling of swapping node name with symlink name 2008-11-24 02:21:12 +01:00
Kay Sievers
45a9e9e27b floppy: use ARRAY_SIZE() 2008-11-23 17:29:37 +01:00
Peter Breitenlohner
013332b93c floppy: fix array bounds check and minor calculation
Fix off-by-4 bug in floppy minors for fd[4-7].
Avoid segmentation fault for bad CMOS type.
Print mode in human readable, i.e., octal form.
2008-11-23 17:22:32 +01:00
Kay Sievers
6733f60178 update NEWS TODO 2008-11-22 00:34:42 +01:00
Kay Sievers
c3f0b654fc path_id: fix fibre channel handling 2008-11-21 20:48:24 +01:00
Peter Breitenlohner
4435308844 man: fix typos 2008-11-21 10:50:12 +01:00
Kay Sievers
f1ab8f912e volume_id: clear probing result before probing and do not probe a second time, if not needed
On Thu, Nov 20, 2008 at 14:17, Karel Zak <kzak@redhat.com> wrote:
>  I see the patch (volume_id_probe_filesystem()) and a few things come
>  to mind:
>
>  - shouldn't be the relevant parts (label, uuid, version, ...) of
>    the "struct volume_id" zeroized when you found a signature and
>    before you call the next probing function?
>
>  - it seems as overkill to use two for()s and probe two times for all
>    filesystems. What about to store the first result and re-use it?
>
>  - .. or at least never use the second for() when the fist for() found
>    nothing ;-)
2008-11-21 07:26:44 +01:00
Kay Sievers
7106902dce volume_id: update btrfs 2008-11-21 07:26:09 +01:00
Kay Sievers
405d283043 vol_id: if regular files are probed, use stat() for the size value 2008-11-21 05:02:02 +01:00
Kay Sievers
2b22881cae volume_id: remove unused usage types 2008-11-21 04:22:04 +01:00
Gabor Z. Papp
28673dd75c include errno.h in sysdeps.h 2008-11-21 04:19:11 +01:00
Kay Sievers
1340a9e9ec scsi_id: make sure, we do not have slashes in values 2008-11-20 07:57:17 +01:00
Kay Sievers
97f37a7e78 ata_id: make sure, we do not have slashes in values 2008-11-20 07:52:33 +01:00
Kay Sievers
5317ca29e5 usb_id: replace chars in returned strings
Slashes are not funny in device names:
  |-- input
  |   |-- by-id
  |   |   `-- usb-Logitech_USB-PS
  |   |       |-- 2_Optical_Mouse-event-mouse -> ../../event2
  |   |       `-- 2_Optical_Mouse-mouse -> ../../mouse1
2008-11-20 02:44:08 +01:00
Kay Sievers
bbfaec2b2f libudev: accept NULL whitelist in util_replace_chars() 2008-11-20 02:43:34 +01:00
Kay Sievers
24239ded2d rules: v4l - add by-id/ links for USB devices
/dev/v4l
|-- by-id
|   |-- usb-046d_09a4_C4B15020-video-index0 -> ../../video0
|   `-- usb-05a9_a511-video-index0 -> ../../video1
`-- by-path
    |-- pci-0000:00:1d.0-usb-0:1:1.0-video-index0 -> ../../video1
    `-- pci-0000:00:1d.7-usb-0:2:1.0-video-index0 -> ../../video0
2008-11-20 02:26:13 +01:00
Kay Sievers
874c43e42a rules: merge group "video" into default rules 2008-11-19 21:47:07 +01:00
Harald Hoyer
15b3df5507 rules: add persistent rules for memory stick block devices
commit 5a9aed145ac0ffb3e29b1c8e0f19b34e277f9117
Author: Harald Hoyer <harald@redhat.com>
Date:   Wed Nov 19 11:22:30 2008 +0100

    added persistent rules for memory stick block devices
2008-11-19 17:29:50 +01:00
Kay Sievers
449934822e bump version 2008-11-18 19:16:42 +01:00
Kay Sievers
361b8a7423 volume_id: update btrfs magic 2008-11-18 19:14:37 +01:00
Kay Sievers
88608b1704 autogen.sh: fix -print-multi-os-directory usage 2008-11-18 03:52:05 +01:00
Kay Sievers
13f362dec5 release 133 2008-11-18 02:50:58 +01:00
Kay Sievers
d78c0b3a5b update NEWS 2008-11-18 02:49:08 +01:00
Kay Sievers
5375c80eba fix $links substitution for devices without any link
Reported-by: Michel Hermier <michel.hermier@gmail.com>
2008-11-17 15:24:47 +01:00
Kay Sievers
c969f88062 udevd: fix cleanup of /dev/.udev/uevent_seqnum 2008-11-17 14:43:58 +01:00
Kay Sievers
096e59edc9 limit $attr(<symlink>) magic to well-known links only 2008-11-17 02:01:37 +01:00
Sergey Vlasov
56116314d1 udevadm: fix option parsing breakage with klibc
The klibc implementation of getopt_long() behaves slightly different
from the glibc one - in particular, it treats the change of the option
string argument between invocations as start of parsing a different
command line, and resets its state.  However, the udevadm code
expected getopt_long() invocations in subcommands to continue parsing
the rest of command line after initial options has been parsed at the
top level; with klibc this broke, causing all udevadm subcommands to
stop recognizing their options.

Instead of relying on the glibc behavior, reset the getopt_long()
state properly before invoking the subcommand handler: move argv to
point to the subcommand name, decrease argc appropriately, and set
optind = 0.  This also fixes a minor bug visible with glibc - without
setting optind = 0 all getopt_long() calls in subcommand handlers were
behaving as if "+" was specified as the first character of the option
string (which disables option reordering), because that state was set
by the first getopt_long() call at the top level, and was not reset
when parsing subcommand options.

Signed-off-by: Sergey Vlasov <vsu@altlinux.ru>
2008-11-15 02:01:15 +01:00
Kay Sievers
f454ecf754 libudev: device - handle disk "device" link for partitions in deprecated sysfs layout
Thanks to Mikhail Kolesnik <mike@openbunker.org> for finding this.
2008-11-14 18:26:49 +01:00
Kay Sievers
4dfe61c966 vol_id: clarify error message 2008-11-14 00:57:34 +01:00
Kay Sievers
510af2e939 volume_id: ntfs - mark as no other fs must match 2008-11-13 21:44:28 +01:00
Kay Sievers
8c7630b704 fix spelling in comment 2008-11-13 20:46:25 +01:00
Kay Sievers
387a827120 volume_id: fat - accept empty FAT32 fsinfo signature 2008-11-13 19:40:24 +01:00
Kay Sievers
779d2d851e volume_id: always check for all filesystem types and skip conflicting results
We probe for all known filesystems to find conflicting signatures. If
we find multiple matching signatures and one of the detected filesystem
types claims that it can not co-exist with any other filesystem type,
we do not return a probing result.

We can not afford to mount a volume with the wrong filesystem code and
possibly corrupt it. Linux ssytems have the problem of dozens of possible
filesystem types, and volumes with left-over signatures from former
filesystem types. Invalid signature need to be removed from the volume
to make the filesystem detection successful.

We do not want to read that many bytes from probed floppies, skip volumes
smaller than a usual floppy disk.
2008-11-13 19:34:41 +01:00