mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Philipp Marek <philipp.marek@emerion.com>
To: linux-kernel@vger.kernel.org
Subject: Changing the data of hardlinked symlinks
Date: Wed, 17 Jun 2009 16:03:38 +0200	[thread overview]
Message-ID: <200906171603.39497.philipp.marek@emerion.com> (raw)

Hello everybody,

I'd like to know if there's something I'm missing, or whether that's simply 
not possible currently - or won't ever because of POSIX.

I have hardlinks of symlinks, like this:
	# ls -la
	-rw-r--r--  1 root root     0 Jun 17 15:36 daten
	drwxr-xr-x  2 root root  4096 Jun 17 15:37 daten2
	lrwxrwxrwx  3 root root     5 Jun 17 15:36 link -> daten
	lrwxrwxrwx  3 root root     5 Jun 17 15:36 link2 -> daten
	lrwxrwxrwx  3 root root     6 Jun 17 15:37 link3 -> daten2
	lrwxrwxrwx  3 root root     6 Jun 17 15:37 link4 -> daten2
	lrwxrwxrwx  3 root root     5 Jun 17 15:36 link5 -> daten
	lrwxrwxrwx  3 root root     6 Jun 17 15:37 link6 -> daten2

Now I'd like to change the inode of one of the symlinks, but in a way that 
*all* symlinks sharing the inode are changed, too.

"ln -f" doesn't work; "man symlink" and "man link" let me believe that it's 
not possible.


I even looked at debugfs, but from a quick look I only saw how to read the 
data of an inode ("cat") - nothing to write it back.


Is there some way to do that?


Regards,

Phil


                 reply	other threads:[~2009-06-17 14:46 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=200906171603.39497.philipp.marek@emerion.com \
    --to=philipp.marek@emerion.com \
    --cc=linux-kernel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®