* directory hardlinks
@ 2001-10-01 7:41 Jukka Iso-Heiniemi
2001-10-01 13:25 ` Ross A Knepper
0 siblings, 1 reply; 4+ messages in thread
From: Jukka Iso-Heiniemi @ 2001-10-01 7:41 UTC (permalink / raw)
To: axp-list; +Cc: Tuomo Hakola
This is not alpha spesific, but still... has anybody
know how to get hardlinks to work with directories (or what
is proper mail list to ask for); ... and yes, I really need
hardlinks for directories.
So far I have modified "fs/ext2/namei.c" to get ext2 to accept
hardlinks, but obviously there is some issues with VFS ("fs/namei.c" ?)
If I remove files from directory which is "pointed" by several
entries from parent directory I can't create new files with same
names; or actually I can, but files won't show up in the directory.
I still can 'ls' them if I use full path; ex. "/tmp/test1/blah"
-rw-rw-r-- 0 root root 14 Sep 28 19:39 /tmp/test1/blah
as you see the link count is "0"? I think there is something out
of sync in VFS's cache, but dunno what...
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: directory hardlinks
2001-10-01 7:41 directory hardlinks Jukka Iso-Heiniemi
@ 2001-10-01 13:25 ` Ross A Knepper
2001-10-01 14:00 ` Jukka Iso-Heiniemi
0 siblings, 1 reply; 4+ messages in thread
From: Ross A Knepper @ 2001-10-01 13:25 UTC (permalink / raw)
To: axp-list; +Cc: Tuomo Hakola
On Mon, 1 Oct 2001, Jukka Iso-Heiniemi wrote:
> This is not alpha spesific, but still... has anybody
> know how to get hardlinks to work with directories (or what
> is proper mail list to ask for); ... and yes, I really need
> hardlinks for directories.
you can't. true, you could hack the code to make it work. but you really
shouldnt. hard links for directories are semantically ambiguous. for
instance, if you "cd ..", which directory do you end up in? there's a
good reason that unix has never had hard links to directories ...
-ross
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: directory hardlinks
2001-10-01 13:25 ` Ross A Knepper
@ 2001-10-01 14:00 ` Jukka Iso-Heiniemi
2001-10-01 15:35 ` Michal Jaegermann
0 siblings, 1 reply; 4+ messages in thread
From: Jukka Iso-Heiniemi @ 2001-10-01 14:00 UTC (permalink / raw)
To: axp-list
On Mon, 1 Oct 2001, Ross A Knepper wrote:
> On Mon, 1 Oct 2001, Iso-H wrote:
> > This is not alpha spesific, but still... has anybody
> > know how to get hardlinks to work with directories (or what
> > is proper mail list to ask for); ... and yes, I really need
> > hardlinks for directories.
>
> you can't. true, you could hack the code to make it work. but you really
> shouldnt. hard links for directories are semantically ambiguous. for
> instance, if you "cd ..", which directory do you end up in?
Hmm, that's very true.
Actually my problem was/is to create system where is possible
to change content (==subdirs) of NFS export directory very
quickly without moving data around. I studied to possibility
to mount loopback-devices (each device has one "target"
directory) locally in file server to change content of
NFS export directory, but mount point limit is only 255 and
it is definitely too low; so if I can raise that limit it
could solve the problem. But is it possible to change that
or is there somewhere 8-bit integer which limits that
value to be absolute maximum ?
> there's a good reason that unix has never had hard links to
> directories...
>
> -ross
>
---
Iso-H
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: directory hardlinks
2001-10-01 14:00 ` Jukka Iso-Heiniemi
@ 2001-10-01 15:35 ` Michal Jaegermann
0 siblings, 0 replies; 4+ messages in thread
From: Michal Jaegermann @ 2001-10-01 15:35 UTC (permalink / raw)
To: axp-list
On Mon, Oct 01, 2001 at 05:00:43PM +0300, Jukka Iso-Heiniemi wrote:
>
> Actually my problem was/is to create system where is possible
> to change content (==subdirs) of NFS export directory very
> quickly without moving data around. I studied to possibility
> to mount loopback-devices
This sounds like a "natural" approach to the problem although,
IIRC, there were some bugs and also fixes with loopback over NFS.
I may be mistaken, though.
In any case you will likely get much better informed answers if you
will discuss that problem on "NFS on Linux" specific list. You can
find out details about this list, including how to subscribe and
where are archives, by visiting
http://lists.sourceforge.net/lists/listinfo/nfs
> NFS export directory, but mount point limit is only 255 and
> it is definitely too low; so if I can raise that limit it
> could solve the problem.
See above.
By hacking hard links for directories you likely end up one day with a
totally messed up file system which includes directory loops. Great
fun!
Michal
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2001-10-01 15:36 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-10-01 7:41 directory hardlinks Jukka Iso-Heiniemi
2001-10-01 13:25 ` Ross A Knepper
2001-10-01 14:00 ` Jukka Iso-Heiniemi
2001-10-01 15:35 ` Michal Jaegermann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox