unix extensions and SMB3?

ObiTobi

Patron
Joined
Jul 12, 2013
Messages
316
Hi,

I have asked Google but have not found a clear answer.
Does the parameter work with SMB3 or not?

Code:
unix extensions = Yes


I would like to be able to work with hard links and soft links on the client side (Windows, Mac, Linux).
 
Joined
Oct 22, 2019
Messages
3,641
I would like to be able to work with hard links and soft links on the client side (Windows, Mac, Linux).
You don't need to do anything extra to support hardlinks. No need for unix extensions = Yes when you create a new SMB share in TrueNAS. Just create the share normally.

Your client / file-browser needs to support creating hardlinks. If you don't want to "guess", just use the terminal on your Linux or Mac client and issue the ln command over the SMB share, such as:
Code:
ln original.dat duplicate.dat


If the client is Linux, do not use the built-in GVFS/KIO method of your file-browser, such as Dolphin or GNOME Files. Properly mount the share via the cifs kernel module using mount, automount, systemd, fstab, Smb4K, or etc.


EDIT: I'm not sure how you would create hardlinks from the Windows File Explorer, CMD, or PowerShell.
 

ObiTobi

Patron
Joined
Jul 12, 2013
Messages
316
And whats about Windows? (I have some Windows 11 machines) and when I try it under Windows

Code:
mklink Lightroom-Input.txt xmp.ps1
Die Datei oder das Verzeichnis ist kein Analysepunkt.


or with PowerShell

Code:
New-Item Lightroom-Input.txt -ItemType SymbolicLink -Value xmp.ps1
New-Item : Die Datei oder das Verzeichnis ist kein Analysepunkt
 
Joined
Oct 22, 2019
Messages
3,641
And whats about Windows?
Sorry, but not sure how you would go about it from a Windows client. :confused:

EDIT: Did you try with the /h flag for "hardlink"?
 

ObiTobi

Patron
Joined
Jul 12, 2013
Messages
316
I can use hardlinks but in my case is this not an option.
But I foud for me other solution - I can set softlinks in my TrueNAS box and Windows is following this links.
 
Top