Re: star and /dev/watchdog (exclusion of files)

[email protected] (Joerg Schilling) Fri, 14 Mar 2008 16:03:07 +0100
Newsgroups gmane.comp.archivers.star.user
Message-ID <47da93ab.RFrLc4IZ7xIysC0l%[email protected]>
Wolfram Schlich <[email protected]> wrote:

> And I was wrong -- it does not include the directory itself as empty.
> Forget about that. Here comes the point:
>
> The problem I had was that with -not -pattern=3D'/some/dir', it did exclu=
de
> /some/dir *itself*, but not anything *beyond* /some/dir (for example
> /some/dir/somefile). So, in order to *completely* exclude a directory,
> I have to use '^/some/dir{%!/*}'.
> As opposed to GNU tar which handles --exclude=3D/some/dir just as I'd
> expect it.

You are mixing apples with oranges here (see star man page).

If GNU tar implements this with pattern matching as star does, it would be =
a =

bug. There is a different behavior from historic tar....

Star implements things in a consistent way.

> > In general: star (the upper layer) does not understand the patterns and=
 for =

> > this reason cannot know whether a pattern that excludes a directory _al=
so_ =

> > excludes all files under that directory. For this reason, star still sc=
ans the =

> > whole directory tree. Star however will only _open(2)_ _directories_ fo=
r this
> > purpose except when you are on Linux and you did specify -xfflags.
>
> Hmm. Looks like a design limitation. GNU tar does not have that
> problem, for example (it does not scan the whole tree).

GNU tar does not implement a single Linux specific feature, this is why GNU=
 tar =

can avoid problems caused by Linux bugs.


> > If you hit a driver with side-effects on open(2) (like a tape driver th=
at =

> > rewinds on open(2) or close(2)), you are lost on Linux. If a driver doe=
s not =

> > honor O_NDELAY, other problems may occur.
> > =

> > Where is your problem?
>
> Looks like I missed the NOTES section about -xfflags :)
> I'll switch off -xfflags now.

Check the man page for the star option to tell that you like to exclude Com=
plete
directory trees.

J=F6rg

-- =

 EMail:[email protected] (home) J=F6rg Schilling D-13353 Be=
rlin
       [email protected]                (uni)  =

       [email protected]     (work) Blog: http://schily.blogspo=
t.com/
 URL:  http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/sch=
ily