Deleting a NTFS hardlink/junction

Discussion of bugs and problems found in Altap Salamander. In your reports, please be as descriptive as possible, and report one incident per report. Do not post crash reports here, send us the generated bug report by email instead, please.
antp
Posts: 43
Joined: 27 Jan 2006, 22:18
Location: Bruxelles, Belgium
Contact:

Deleting a NTFS hardlink/junction

Postby antp » 27 Jan 2006, 22:25

I already reported this by e-mail, in a previous version of Salamander the icons overlay for NTFS hardlinks/junctions was added, but in latest beta (11) a bug is still present:
When I delete a junction (= hardlink to a folder) without using recycle bin, (i.e. Shift+Del) Salamander clears folder contents before removing it.
But since it is only a link, it actually clears the contents of the target folder. Which is dangerous and useless (since the junction folder can be deleted witout emptying it: it is already empty).
I guess that since the overlay icon can be displayed, it should be also possible to detect that this is a junction and not a normal folder?

cincura.net
Posts: 593
Joined: 09 Dec 2005, 17:30
Location: a step further
Contact:

Postby cincura.net » 27 Jan 2006, 22:47

I think, that some special Delete operation would be useful. i.e Alt-Del, ...

And would be great to add ability for creating junction. :)
Jiri {x2} Cincura (x2develop.com)

grymmjack
Posts: 53
Joined: 07 Jan 2006, 14:53
Contact:

Re: Deleting a NTFS hardlink/junction

Postby grymmjack » 28 Jan 2006, 03:35

antp wrote:I already reported this by e-mail, in a previous version of Salamander the icons overlay for NTFS hardlinks/junctions was added, but in latest beta (11) a bug is still present:
When I delete a junction (= hardlink to a folder) without using recycle bin, (i.e. Shift+Del) Salamander clears folder contents before removing it.
But since it is only a link, it actually clears the contents of the target folder. Which is dangerous and useless (since the junction folder can be deleted witout emptying it: it is already empty).
I guess that since the overlay icon can be displayed, it should be also possible to detect that this is a junction and not a normal folder?


Yikes!

Agree, this needs fixed.

Petr Solin
ALTAP Staff
ALTAP Staff
Posts: 1068
Joined: 08 Dec 2005, 09:13
Location: Novy Bor, Czech Republic
Contact:

Postby Petr Solin » 29 Jan 2006, 23:02

Yes, I have it on my to-do list. :)

User avatar
jis
Posts: 450
Joined: 27 Jan 2006, 23:14
Location: Prague, Czech Republic

Re: Deleting a NTFS hardlink/junction

Postby jis » 12 Feb 2006, 19:07

antp wrote:...in a previous version of Salamander the icons overlay for NTFS hardlinks/junctions was added, ...
...I guess that since the overlay icon can be displayed, ...

This is for me really new information. I use hardlinks for many years, but I don't know anything about SS capabilities to show overlay icons for NTFS hardlinks/junctions. Please, can you tell me where did you get this information? I use mainly this tool http://www.elsdoerfer.info/ntfslink/.
Salamander fan since 1998
My current OS's: W7 and W8.1

antp
Posts: 43
Joined: 27 Jan 2006, 22:18
Location: Bruxelles, Belgium
Contact:

Postby antp » 12 Feb 2006, 19:37

I use this tool too.
I discuted about that with Petr (I think) by e-mail actually. On my system Salamander shows the same overlay icons that Windows do.

User avatar
jis
Posts: 450
Joined: 27 Jan 2006, 23:14
Location: Prague, Czech Republic

Postby jis » 12 Feb 2006, 20:11

antp wrote:I use this tool too.
I discuted about that with Petr (I think) by e-mail actually. On my system Salamander shows the same overlay icons that Windows do.

It is strange, because on my system Salamander doesn't show overlay icons from NTFS Link Windows Shell Extension. I must open actual folder from SS in Windows Explorer by Shift-F3 when I want to see overlay icons. Explanation for other forum users: NTFS Link Windows Shell Extension hooks into Windows Explorer and provide extended functionality for creating and using hard links, as well as junction points on NTFS file systems.
Salamander fan since 1998
My current OS's: W7 and W8.1

antp
Posts: 43
Joined: 27 Jan 2006, 22:18
Location: Bruxelles, Belgium
Contact:

Postby antp » 12 Feb 2006, 22:31

Actually here it uses the icon that I defined for shortcuts, but since it is similar to the one that I defined for hardlinks I never noticied that it was the wrong icon.

User avatar
jis
Posts: 450
Joined: 27 Jan 2006, 23:14
Location: Prague, Czech Republic

Postby jis » 12 Feb 2006, 23:58

antp wrote:Actually here it uses the icon that I defined for shortcuts, but since it is similar to the one that I defined for hardlinks I never noticied that it was the wrong icon.

I am sorry, but I don't understand: So, does your Salamander show overlay icons from NTFS Link Windows Shell Extension, or not?
Salamander fan since 1998
My current OS's: W7 and W8.1

Petr Solin
ALTAP Staff
ALTAP Staff
Posts: 1068
Joined: 08 Dec 2005, 09:13
Location: Novy Bor, Czech Republic
Contact:

Postby Petr Solin » 13 Feb 2006, 15:24

Salamander displays standard link overlay icon for directories with FILE_ATTRIBUTE_REPARSE_POINT attribute. Icon overlays which are used e.g. by Tortoise CVS are not supported yet, we have it on our to-do list.

antp
Posts: 43
Joined: 27 Jan 2006, 22:18
Location: Bruxelles, Belgium
Contact:

Postby antp » 13 Feb 2006, 22:44

jis wrote:
antp wrote:Actually here it uses the icon that I defined for shortcuts, but since it is similar to the one that I defined for hardlinks I never noticied that it was the wrong icon.

I am sorry, but I don't understand: So, does your Salamander show overlay icons from NTFS Link Windows Shell Extension, or not?

It does not show the icons defined in the NTFS Link Extension. It uses Windows' shortcut icon, though it recognizes the folder as a folder and not as a shortcut.

cincura.net
Posts: 593
Joined: 09 Dec 2005, 17:30
Location: a step further
Contact:

Postby cincura.net » 13 Feb 2006, 23:32

antp wrote:It does not show the icons defined in the NTFS Link Extension. It uses Windows' shortcut icon, though it recognizes the folder as a folder and not as a shortcut.


My idea is, that there's a problem with these extensions. There are extending the 'shell', but SS uses pure WinAPI, so it's able to recognize only things, which are served to it with these API functions.

PS: I'll be very happy when SS will be able to show Tortoise SVN, ... overlay icons. 8)
Jiri {x2} Cincura (x2develop.com)

antp
Posts: 43
Joined: 27 Jan 2006, 22:18
Location: Bruxelles, Belgium
Contact:

Postby antp » 13 Feb 2006, 23:51

Overlay icons is not a big problem I think, though it would of course be nice and useful to have them.
But the NTFS junction are a feature that exists and works without extra tool. The extension is there only to allow to create them easily (the only junction that you can create is a link folder->partition).
Deleting the whole partition contents when you want to remove the link is more dangerous :D

cincura.net
Posts: 593
Joined: 09 Dec 2005, 17:30
Location: a step further
Contact:

Postby cincura.net » 13 Feb 2006, 23:58

antp wrote:But the NTFS junction are a feature that exists and works without extra tool. The extension is there only to allow to create them easily.

Yeah, you're right. I'm using the utility from Win resource kit and/or the juction tool from sysinternals. It allows me to create symlinks somehow I want. :)
antp wrote:The only junction that you can create is a link folder->partition.
Deleting the partition contents when you want to remove the link is more dangerous :D

:twisted: Yes, it's little dangerous. I've no idea, why MS allows easily to create this and for folder<->folder you need RK or 3rd party util.

That's why I suggest to use special shortcut for deleting this 'points' (and maybe some shortcut for creating it? :wink: ).
Jiri {x2} Cincura (x2develop.com)

antp
Posts: 43
Joined: 27 Jan 2006, 22:18
Location: Bruxelles, Belgium
Contact:

Postby antp » 14 Feb 2006, 00:25

Shift+Del coult delete the folder used for link without emptying its contents.
Creating these junction could be nice too, maybe with the drag&drop contextual menu since it is already created by Salamander (the NTFSlink extension is hidden in the "Other..." menu item).

It is possible to easily delete these junctions without emptying their "contents". Some bad install programs do that :
c:\programs\software-name
"programs" is junction point to another parition.
They try to delete each folder until they reach the root without checking if there is something in it, since a delete fail for non-empty folders.
"programs" folder can be deleted easily since it is an empty folder used for a link. So the uninstall program removes it, and then I have to recreate the link to the partition :D


Return to “Problems and Troubleshooting”

Who is online

Users browsing this forum: No registered users and 0 guests