Re: Hardlink sub-directories and files

2011-08-08 Thread Alexander Gattin
Hello, On Tue, Aug 02, 2011 at 02:32:54AM -0700, loial wrote: > This works fine for files, but the directory > also contains sub- directories (which themselves > contain files and sub-directories). However I > do not think it is possible to hard link > directories ? On some Unices it is, as I he

Re: Hardlink sub-directories and files

2011-08-03 Thread Dan Stromberg
On Wed, Aug 3, 2011 at 2:54 PM, Thomas Jollans wrote: > > On 03/08/11 23:25, Dan Stromberg wrote: > > > Interesting. Of course, it's probably readily available to you. > What > > > *ix are you seeing that doesn't include cpio by default? > > > > Arch Linux - the base install is quit

Re: Hardlink sub-directories and files

2011-08-03 Thread Thomas Jollans
On 03/08/11 23:25, Dan Stromberg wrote: > > On Wed, Aug 3, 2011 at 11:49 AM, Thomas Jollans > wrote: > > > > Interesting. Of course, it's probably readily available to you. What > > *ix are you seeing that doesn't include cpio by default? > > Arch Linux -

Re: Hardlink sub-directories and files

2011-08-03 Thread Dan Stromberg
On Wed, Aug 3, 2011 at 11:49 AM, Thomas Jollans wrote: > > > Interesting. Of course, it's probably readily available to you. What > > *ix are you seeing that doesn't include cpio by default? > > Arch Linux - the base install is quite minimal. I just discovered that I > have a program called bsd

Re: Hardlink sub-directories and files

2011-08-03 Thread Ned Deily
In article , Grant Edwards wrote: > On 2011-08-03, Kushal Kumaran wrote: > > On Wed, Aug 3, 2011 at 7:29 AM, Dan Stromberg wrote: > >> > >> On Tue, Aug 2, 2011 at 3:13 AM, Thomas Jollans wrote: > >>> > >>> On 02/08/11 11:32, loial wrote: > >>> > I am trying to hardlink all files in a directory

Re: Hardlink sub-directories and files

2011-08-03 Thread Thomas Jollans
On 03/08/11 18:29, Dan Stromberg wrote: > > On Wed, Aug 3, 2011 at 2:47 AM, Thomas Jollans > wrote: > > Is it more portable? I don't actually have cpio installed on this > system. > > > Interesting. Of course, it's probably readily available to you. What > *i

Re: Hardlink sub-directories and files

2011-08-03 Thread Dan Stromberg
On Wed, Aug 3, 2011 at 12:04 AM, Nobody wrote: > On Tue, 02 Aug 2011 02:32:54 -0700, loial wrote: > > > However I do not think it is possible to hard link directories ? > > Modern Unices disallow hard links to directories, as it makes the > directory "tree" not a tree, so anything which performs

Re: Hardlink sub-directories and files

2011-08-03 Thread Dan Stromberg
On Wed, Aug 3, 2011 at 2:47 AM, Thomas Jollans wrote: > Is it more portable? I don't actually have cpio installed on this > system. Interesting. Of course, it's probably readily available to you. What *ix are you seeing that doesn't include cpio by default? > Which implementations of cp don

Re: Hardlink sub-directories and files

2011-08-03 Thread Thomas Jollans
On 03/08/11 16:22, Grant Edwards wrote: > On 2011-08-03, Kushal Kumaran wrote: >> I suppose it is a good thing systems don't allow that now. > > It wouldn't be a problem, except there are some important places in > Unix where it is assume that filesystems are trees. Hard linking > directories ca

Re: Hardlink sub-directories and files

2011-08-03 Thread Grant Edwards
On 2011-08-03, Kushal Kumaran wrote: > On Wed, Aug 3, 2011 at 7:29 AM, Dan Stromberg wrote: >> >> On Tue, Aug 2, 2011 at 3:13 AM, Thomas Jollans wrote: >>> >>> On 02/08/11 11:32, loial wrote: >>> > I am trying to hardlink all files in a directory structure using >>> > os.link. >>> > >>> > Howeve

Re: Hardlink sub-directories and files

2011-08-03 Thread Thomas Jollans
On 03/08/11 03:59, Dan Stromberg wrote: > > On Tue, Aug 2, 2011 at 3:13 AM, Thomas Jollans > wrote: > > On 02/08/11 11:32, loial wrote: > > I am trying to hardlink all files in a directory structure using > > os.link. > > > > However I do not think it

Re: Hardlink sub-directories and files

2011-08-03 Thread Nobody
On Tue, 02 Aug 2011 02:32:54 -0700, loial wrote: > However I do not think it is possible to hard link directories ? Modern Unices disallow hard links to directories, as it makes the directory "tree" not a tree, so anything which performs a recursive walk must explicitly check for cycles to avoid

Re: Hardlink sub-directories and files

2011-08-02 Thread Kushal Kumaran
On Wed, Aug 3, 2011 at 7:29 AM, Dan Stromberg wrote: > > On Tue, Aug 2, 2011 at 3:13 AM, Thomas Jollans wrote: >> >> On 02/08/11 11:32, loial wrote: >> > I am trying to hardlink all files in a directory structure using >> > os.link. >> > >> > However I do not think it is possible to hard link dir

Re: Hardlink sub-directories and files

2011-08-02 Thread Dan Stromberg
On Tue, Aug 2, 2011 at 3:13 AM, Thomas Jollans wrote: > On 02/08/11 11:32, loial wrote: > > I am trying to hardlink all files in a directory structure using > > os.link. > > > > However I do not think it is possible to hard link directories ? > That is pretty true. I've heard of hardlinked dire

Re: Hardlink sub-directories and files

2011-08-02 Thread Tim Chase
On 08/02/2011 04:32 AM, loial wrote: I am trying to hardlink all files in a directory structure using os.link. Or is there an easier way to hardlink everything in a directory structure?. The requirement is for hard links, not symbolic links While Peter & Thomas gave good answers, also be aware

Re: Hardlink sub-directories and files

2011-08-02 Thread Thomas Jollans
On 02/08/11 11:32, loial wrote: > I am trying to hardlink all files in a directory structure using > os.link. > > This works fine for files, but the directory also contains sub- > directories (which themselves contain files and sub-directories). > However I do not think it is possible to hard link

Re: Hardlink sub-directories and files

2011-08-02 Thread Peter Otten
loial wrote: > I am trying to hardlink all files in a directory structure using > os.link. > > This works fine for files, but the directory also contains sub- > directories (which themselves contain files and sub-directories). > However I do not think it is possible to hard link directories ? >

Hardlink sub-directories and files

2011-08-02 Thread loial
I am trying to hardlink all files in a directory structure using os.link. This works fine for files, but the directory also contains sub- directories (which themselves contain files and sub-directories). However I do not think it is possible to hard link directories ? So presumably I would need t