VirtualBox

Changeset 92502 in vbox


Ignore:
Timestamp:
Nov 18, 2021 5:35:10 PM (3 years ago)
Author:
vboxsync
Message:

VBoxGuest-netbsd.c: bugref:8547: if /dev/vboxguest already exists,
print a message with the major we've got and ask the user to check the
existing node.

Since NetBSD doesn't yet have a major reserved for vboxguest, the
(first free) major we get will change when new devices are added, so
an existing /dev/vboxguest may now point to some other device,
creating confusion (tripped me up a few times).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest-netbsd.c

    r91255 r92502  
    10291029#endif
    10301030                                 UIO_SYSSPACE);
    1031             if (error == EEXIST)
     1031            if (error == EEXIST) {
    10321032                error = 0;
     1033
     1034                /*
     1035                 * Since NetBSD doesn't yet have a major reserved for
     1036                 * vboxguest, the (first free) major we get will
     1037                 * change when new devices are added, so an existing
     1038                 * /dev/vboxguest may now point to some other device,
     1039                 * creating confusion (tripped me up a few times).
     1040                 */
     1041                aprint_normal("vboxguest: major %d:"
     1042                              " check existing /dev/vboxguest\n", cmajor);
     1043            }
    10331044            break;
    10341045
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette