Jeremy C. Reed wrote:
> On Wed, 13 Dec 2006, Kern Sibbald wrote:
> 
>> Concerning all these differences on FreeBSD:  if the changes needed to make 
>> things work correctly on FreeBSD are extensive and require a bit of 
>> #ifdefing, we are going to have to re-think how we do it.  The code is 
> ...
> 
> I just want to point out that this problem is not specific to FreeBSD. I 
> am sure it will happen on many other (even non-BSD) operating systems too 
> ... but it just hasn't been reported yet.
> 
> Linux with standard ext2fs file system has the same behaviour: you can not 
> create a link (hardlink) to target file that has the immutable file 
> attribute. (This is easy to try.)
> 
> I am not familiar with this in Bacula though ... from a quick search 
> through bacula/src I don't see any ioctl for setting ext2fs flags. If I am 
> overlooking this, please point me to it.

Sorry for the missunderstandig. I was refering to the symlink behaviour.
This is specific to Free/NetBSD AFAIK. At least there is no lchmod(2) for
any other OS I know of.

> I am curious about this since file system flags are handled for BSD 
> systems, so why not others too? (If it does, please point me to it.)
> 
> The standard e2fsprogs suite provides source code for this. See 
> lib/e2p/fsetflags.c and lib/e2p/fgetflags.c. This e2fsprogs code supports 
> both Linux ext2fs and BSD (chflags and stat). I assume xfsprogs and 
> progreiserfs have similar functionality and routines.
> 
> So what I am getting at ... instead of just ifdef'ing for HAVE_CHFLAGS, 
> maybe it should have a common routines like fsetflags() and fgetflags() 
> that can be adjusted for all.
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
> 
> 


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to