Date: Wed, 3 Oct 2001 17:51:09 -0300 (ART) From: Fernando Gleiser <fgleiser@cactus.fi.uba.ar> To: Tim Singletary <tsingle@vetinsite.com> Cc: <freebsd-questions@FreeBSD.ORG> Subject: Re: hard link and schg flag ? Message-ID: <20011003174756.D20900-100000@cactus.fi.uba.ar> In-Reply-To: <15291.26813.915555.640978@macaw.hq.vetinsite.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 3 Oct 2001, Tim Singletary wrote:
> > if the inmutable flags afects the inode rather than the contents of the file
> > this is a feature, since creating a new hardlink increases the link count
>
> I suspect this is correct. But I can't find good documentation for
> this.
From /sys/ufs/ufs/ufs_vnops.c :
if (ip->i_flags & (IMMUTABLE | APPEND)) {
error = EPERM;
goto out1;
}
So it is a feature. Time to fill a PR for the man page.
Fer
>
> In particular, ln fails with `Operation not permitted'. I haven't
> looked at the source code, but I'll guess this is because link()
> failed with EPERM. But `man 2 link' says that EPERM occurs when
> `The file named by _name1_ is a directory', and that's clearly
> not what's happening here!
>
> tim
>
>
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
>
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011003174756.D20900-100000>
