diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2007-08-26 05:22:35 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2007-08-26 05:22:35 +0200 |
commit | a2f2270eef499f6f60075a149011e3e3851ab5ef (patch) | |
tree | 5e84f73d692a9e9b6cc679c29112f2f97ce39e84 /udev_device.c | |
parent | 3f781cab37dbee76340c65602555a524ffea96f9 (diff) |
track "move" events to rename database and failed files
Diffstat (limited to 'udev_device.c')
-rw-r--r-- | udev_device.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/udev_device.c b/udev_device.c index 23ba313db3..2b7ffe0bf4 100644 --- a/udev_device.c +++ b/udev_device.c @@ -168,6 +168,10 @@ int udev_device_event(struct udev_rules *rules, struct udevice *udev) { int retval = 0; + if (udev->devpath_old != NULL) + if (udev_db_rename(udev->devpath_old, udev->dev->devpath) == 0) + info("moved database from '%s' to '%s'", udev->devpath_old, udev->dev->devpath); + /* add device node */ if (major(udev->devt) != 0 && (strcmp(udev->action, "add") == 0 || strcmp(udev->action, "change") == 0)) { |