Re: file names, symbolic links

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Peter Wieland [MSFT] (peterwie_at_online.microsoft.com)
Date: 06/02/04


Date: Wed, 2 Jun 2004 10:10:48 -0700

why do you need the target of the symbolic link in the kernel? The symbolic
links are generally there for a reason (like they provide a well-known name
link to an object whose name can change each boot) so in most cases you're
better off reporting or saving the symbolic link name rather than the actual
object name.

-p

-- 
This posting is provided "AS IS" with no warranties, and confers no rights.
"finecats" <finecats@noemail.noemail> wrote in message 
news:E8CF84FB-3AF3-4EA3-8687-81BFAA4FF81B@microsoft.com...
> This API appears to be part of win32 and not part of kernel mode 
> programming?  Could you please clarify that.  I need an api to be called 
> from kernel mode.
> Thanks
> Finecats
>
>     ----- Bart Bartel [MSFT] wrote: -----
>
>     The API QueryDosDevice(szDriveLetter, szNtDeviceName, MAX_PATH) takes 
> the
>     drive letter and returns the \Device\HarddiskVolumeX string in the 
> second
>     argument.  The sample code for this is in the Base Win32 SDK in the
>     Samples\winbase\IO\DLEdit directory.
>
>     This posting is provided "AS IS" with no warranties, and confers no 
> rights 


Relevant Pages

  • initrd.img and booting
    ... I have a Sid installation with the 2.6.7-1 kernel, ... I note that you have an old initrd symbolic link in place. ... need to update the boot loader Igore it and do nothing ... Searching for GRUB installation directory ... ...
    (Debian-User)
  • Re: file names, symbolic links
    ... Not only may volumes not have drive letters, ... in kernel mode. ... it will give you back all the other mount points for the volume. ... better off reporting or saving the symbolic link name rather than ...
    (microsoft.public.development.device.drivers)
  • Re: How to tell what kernel is running?
    ... > symbolic link System.map to point to this file. ... you haven't re-run lilo to update your system. ... be pointing to your old kernel. ... Then I just change my symlinks when I upgrade and re-run lilo. ...
    (alt.os.linux)
  • Re: Can I Remove Lycoris Splash Screen?
    ... Does my kernel have ... However /boot/message was really a symbolic link to ... Removing that section from lilo would probably work just as well. ... Remember to re-run lilo after you make the change. ...
    (comp.os.linux.misc)
  • Re: Confusion in usr/include/linux/videodev.h
    ... It means this file is only valid for kernel mode if CONFIG_VIDEO_V4L1_COMPAT is defined but in user mode it is always valid. ... V4L1 is the old deprecated userspace API for video devices. ...
    (Linux-Kernel)