All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vasyl Vavrychuk <vvavrychuk@gmail.com>
To: linux-nfs@vger.kernel.org
Subject: Hard linking symlink does not work
Date: Fri, 23 Oct 2020 13:13:02 +0300	[thread overview]
Message-ID: <CAGj4m+5rpNqW=XnU2cxGmWiBi47w3XTvn9EGekVPjq74pHfFGA@mail.gmail.com> (raw)

Hi,

I have found that hard links for regular files works well for me over NFS:

$ touch bar
$ ln bar tata

But if I try to make hard link for symlink, then it fails:

$ ln -s foo bar
$ ln bar tata
ln: failed to create hard link 'tata' => 'bar': Operation not permitted

I am using NFSv4 with Vagrant, here is mount entry:

172.28.128.1:PATH on /vagrant type nfs4
(rw,relatime,vers=4.0,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,port=0,timeo=600,retrans=2,sec=sys,clientaddr=IP,local_lock=none,addr=IP)

I have also verified that rpc-statd is running on host.

Host machine is Ubuntu 18.04 with NFS packages version 1:1.3.4-2.1ubuntu5.3.

Will appreciate help on this.

Thanks,
Vasyl

             reply	other threads:[~2020-10-23 10:13 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-23 10:13 Vasyl Vavrychuk [this message]
2020-10-27 17:12 ` Hard linking symlink does not work J. Bruce Fields
2020-10-27 20:03   ` Patrick Goetz
2020-10-28  8:53     ` Vasyl Vavrychuk
2020-11-06 21:46       ` J. Bruce Fields

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAGj4m+5rpNqW=XnU2cxGmWiBi47w3XTvn9EGekVPjq74pHfFGA@mail.gmail.com' \
    --to=vvavrychuk@gmail.com \
    --cc=linux-nfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.