lkml.org 
[lkml]   [1999]   [May]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Deletion of big files...
Rik van Riel wrote:

> > Looks to me like the unlink syscall is somewhat synchronous, and it
> > shouldn't, or does it? For this concrete issue, it could be easily
> > solved by the unlink syscall starting a thread to unlink the big file,
>
> Cosmetics.
>
> $ rm bigfile&
>
> will achieve exactly the same thing at no kernel
> cost...
>

No it won't. Try this in a partition with enough free space:

dd if=/dev/zero of=test bs=1k count=800000
[wait]

rm test &
ls

The last ls won't show inmediately. In fact, it will be blocked till the
rm finishes - which is the behaviour I think we need to suppress...

Try it...

--
Jorge Gonzalez <jorgegv@icai.upco.es> -o)
ICAI - Universidad Pontificia Comillas /\\
Administrador de Sistemas _\_v

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:51    [W:0.175 / U:0.468 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site