Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Aug 2017 12:48:56 +0200
From:      Polytropon <freebsd@edvax.de>
To:        Manish Jain <bourne.identity@hotmail.com>
Cc:        "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>, "Warren Block" <wblock@wonkity.com>
Subject:   Re: Anything specific to keep in mind restoring from rsync ?
Message-ID:  <20170825124856.a1e4436a.freebsd@edvax.de>
In-Reply-To: <VI1PR02MB1200A23C945E91836AFDF263F69B0@VI1PR02MB1200.eurprd02.prod.outlook.com>
References:  <VI1PR02MB1200E48789933A9BCAAAECD4F6800@VI1PR02MB1200.eurprd02.prod.outlook.com> <20170818074902.GA91334@gmail.com> <VI1PR02MB1200A074E97E82E758827E91F6800@VI1PR02MB1200.eurprd02.prod.outlook.com> <alpine.BSF.2.21.1708241026360.23386@wonkity.com> <VI1PR02MB1200FC78BA6AFD1C93CA9323F69B0@VI1PR02MB1200.eurprd02.prod.outlook.com> <20170825023237.9b6b22b2.freebsd@edvax.de> <VI1PR02MB1200A23C945E91836AFDF263F69B0@VI1PR02MB1200.eurprd02.prod.outlook.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 25 Aug 2017 01:58:05 +0000, Manish Jain wrote:
> My /rescue indeed now has all files therein as separate files (unique 
> inodes). If the system has any more hard links, then my box would be 
> hosting them as separate files.
> 
> Is it okay if I keep using this box as-is-now (no hard links) ? The box 
> runs fantastically well.

It should be no problem. When you do a system update, files
get overwritten (unlinked) and re-instantiated, so the original
hardlinks should be back in place.

The key idea behind hardlinks will of course still work. A
program can decide upon the value of argv[0], which is the
name it is called by. For example, the programs in /rescue
behave totally different depending on that name, even though
it is _the same_ program whenever you execute it. This
mechanism does not change when they are individual binaries.

For example, I have a script in ~/bin with several symlinks
pointing to it, and depending on the name, the script's
behaviour changes. It's a "mass image converter" conv_, and
it is called conv_png2jpg, conv_dicom2jpg, conv_gif2png and
so on, and whenever I need another conv_<from>2<to>, I just
add a new symlink. The same would work with hardlinks. A sh
shell script can use `basename $0` for this decision.



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20170825124856.a1e4436a.freebsd>