From: Peter Dyballa <Peter_Dyballa@Web.DE>
To: Sven Bretfeld <sven.bretfeld@gmx.ch>
Cc: help-gnu-emacs@gnu.org
Subject: Re: emacsserver unstable?
Date: Wed, 25 Jul 2007 00:47:17 +0200 [thread overview]
Message-ID: <5608F9E5-F45A-41DE-AB48-B7F2FD4B88B8@Web.DE> (raw)
In-Reply-To: <20070724220116.GK3486@relwi.unibe.ch>
Am 25.07.2007 um 00:01 schrieb Sven Bretfeld:
> What, then, is a hardlink?
In MS-DOS it's a cross-referenced file => damaged file system.
In a UNIX file system (ufs, or BSD Fast File System) a file can be
one or a whole series of blocks on a disk in one file system. These
can be addressed from one single "inode" (member of a directory
structure) or more than one inode. On the same volume/partition/slice
one file can be referenced from more than one directory, i.e. it
seems to exist more than once. There is no original. The ls command
shows a link count (3 in this example), and also an inode number
(9099707):
9099707 -rw-r--r-- 3 pete admin 123 25 Jul 00:17 drei
9099707 -rw-r--r-- 3 pete admin 123 25 Jul 00:17 eins
9099707 -rw-r--r-- 3 pete admin 123 25 Jul 00:17 zwei
No hard link consumes any disk space. It is restricted to the same
file system. When you need a link to a file in another file system,
it has to be a symbolic link. This one is kind of a regular file
which passes every access to the file it points to. A sym-link costs
as many bytes disk space as the pointer is long (plus the inode entry):
9099811 lrwxr-xr-x 1 pete admin 72 25 Jul 00:17 sym-link -> /
usr/local/texlive/2007/texmf-dist/fonts/type1/public/archaic/linb10.pfb
pete 165 /\ echo -n /usr/local/texlive/2007/texmf-dist/fonts/type1/
public/archaic/linb10.pfb | wc -c
72
Sym-links can also point to files on another computer. The target to
which a sym-link points does not necessarily need to exist. When you
remove a sym-link, only the sym-link file is removed (the target can
continue to exist or not-exist as before). When you remove (or
unlink) a file with a (hard) link count of 1, some disk space is
freed and the last link to the block(s) that built the disk space of
a file, is wiped out, data is lost, the file gone.
Question: what happens when you create a hard link to a symbolic link
that has its target a) in the same file system, b) in another file
system?
--
Greetings
Pete
"If builders built buildings the way programmers write programs, then
the first woodpecker that came along would destroy civilization."
-- Weinberg's Second Law
next prev parent reply other threads:[~2007-07-24 22:47 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-23 23:40 emacsserver unstable? Sven Bretfeld
2007-07-24 13:44 ` Sven Bretfeld
[not found] ` <mailman.3864.1185284692.32220.help-gnu-emacs@gnu.org>
2007-07-24 15:05 ` Tassilo Horn
2007-07-24 16:08 ` Sven Bretfeld
2007-07-24 17:44 ` Peter Dyballa
2007-07-24 19:08 ` Sven Bretfeld
2007-07-24 20:22 ` Peter Dyballa
2007-07-24 21:46 ` Lennart Borgman (gmail)
2007-07-24 21:50 ` Peter Dyballa
2007-07-24 22:01 ` Sven Bretfeld
2007-07-24 22:47 ` Peter Dyballa [this message]
2007-07-25 13:43 ` Sven Bretfeld
2007-07-25 15:13 ` Sven Bretfeld
2007-07-25 23:43 ` Sven Bretfeld
[not found] ` <mailman.3990.1185406991.32220.help-gnu-emacs@gnu.org>
2007-07-26 8:22 ` Tassilo Horn
[not found] <mailman.3828.1185234040.32220.help-gnu-emacs@gnu.org>
2007-07-24 7:48 ` Tassilo Horn
2007-07-24 9:09 ` Sven Bretfeld
[not found] ` <mailman.3845.1185268221.32220.help-gnu-emacs@gnu.org>
2007-07-25 5:59 ` Stefan Monnier
2007-07-26 13:26 ` Sven Bretfeld
2007-07-26 18:27 ` Peter Dyballa
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=5608F9E5-F45A-41DE-AB48-B7F2FD4B88B8@Web.DE \
--to=peter_dyballa@web.de \
--cc=help-gnu-emacs@gnu.org \
--cc=sven.bretfeld@gmx.ch \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
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.