On Sat, 12 Jan 2002, H. Peter Anvin wrote: > > - The c_filesize should be zero for any non-regular file. > > + The c_filesize can be non-zero only for regular files and symlinks. > > + For symlinks data and c_filesize match the results of readlink(2). > > + Having more than one link to a symlink is illegal. > > > > Why can't you have more than one link to a symlink? Basically, you'll have no decent way to preserve that when you unpack. In our case we _can_ do that; in general there is no portable way to create such links (semantics of link(2) wrt following links differs even between Linux versions, let alone various Unices). cpio(1) includes the symlink body with each instance and doesn't even bother trying to link(2) them when unpacking. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo _at_ vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
References:
- Re: initramfs buffer spec -- second draft"H. Peter Anvin" <hpa _at_ zytor.com>
- Prev by Date: Re: [2.4.17/18pre] VM and swap - it's really unusable
- Next by Date: Re: HPT370 controller set wrong udma mode
- Previous by thread: Re: initramfs buffer spec -- second draft
- Next by thread: Re: initramfs buffer spec -- second draft
- Indexes:[Main][Thread]