Re: BIO_DELETE equivalent for file on FFS filesystem

2012-06-17 Thread Eitan Adler
On 16 June 2012 13:46, Garrett Cooper wrote: >>> > > What if you cp it? >    Our version of cp doesn't support sparsing of files, but Linux's > does: http://linux.about.com/od/commands/l/blcmdl1_cp.htm Is this intentional that we don't support sparse files or just no one wrote the code? -- Eita

Re: BIO_DELETE equivalent for file on FFS filesystem

2012-06-16 Thread Garrett Cooper
On Sat, Jun 16, 2012 at 1:34 PM, Mike Meyer wrote: > On Sat, 16 Jun 2012 21:04:26 +0100 > Chris Rees wrote: > >> On Jun 16, 2012 8:37 PM, "Xin LI" wrote: >> > >> > On Sat, Jun 16, 2012 at 12:01 PM, Chris Rees wrote: >> > > On Jun 14, 2012 5:49 AM, "Wojciech Puchar" < >> woj...@wojtek.tensor.gdy

Re: BIO_DELETE equivalent for file on FFS filesystem

2012-06-16 Thread Mike Meyer
On Sat, 16 Jun 2012 21:04:26 +0100 Chris Rees wrote: > On Jun 16, 2012 8:37 PM, "Xin LI" wrote: > > > > On Sat, Jun 16, 2012 at 12:01 PM, Chris Rees wrote: > > > On Jun 14, 2012 5:49 AM, "Wojciech Puchar" < > woj...@wojtek.tensor.gdynia.pl> > > > wrote: > > > > file to take 900MB or..

Re: BIO_DELETE equivalent for file on FFS filesystem

2012-06-16 Thread Chris Rees
On Jun 16, 2012 8:37 PM, "Xin LI" wrote: > > On Sat, Jun 16, 2012 at 12:01 PM, Chris Rees wrote: > > On Jun 14, 2012 5:49 AM, "Wojciech Puchar" < woj...@wojtek.tensor.gdynia.pl> > > wrote: > > file to take 900MB or... can i call some system function to "punch" > holes? > >>> > >>>

Re: BIO_DELETE equivalent for file on FFS filesystem

2012-06-16 Thread Xin LI
On Sat, Jun 16, 2012 at 12:01 PM, Chris Rees wrote: > On Jun 14, 2012 5:49 AM, "Wojciech Puchar" > wrote: file to take 900MB or... can i call some system function to "punch" holes? >>> >>> >>> I think you can only truncate the file at this time, pretty much like >>> brk() works for

Re: BIO_DELETE equivalent for file on FFS filesystem

2012-06-16 Thread Chris Rees
On Jun 14, 2012 5:49 AM, "Wojciech Puchar" wrote: >>> >>> file to take 900MB or... can i call some system function to "punch" >>> holes? >> >> >> I think you can only truncate the file at this time, pretty much like >> brk() works for memory. > > > > BAD. suppose i keep windoze VM image on filesys

Re: BIO_DELETE equivalent for file on FFS filesystem

2012-06-16 Thread Wojciech Puchar
i could write simple program to find out what blocks are unused and then...do nothing. Actually you can. Use dd if=infile of=outfile conv=sparse to convert a file to a sparse file. This obviously only works on filesystems supporting sparse files, such as UFS. of course i can by copying. not r

Re: BIO_DELETE equivalent for file on FFS filesystem

2012-06-16 Thread Pieter de Goeje
On Thursday 14 June 2012 06:48:14 Wojciech Puchar wrote: > >> file to take 900MB or... can i call some system function to "punch" > >> holes? > > > > I think you can only truncate the file at this time, pretty much like > > brk() works for memory. > > BAD. suppose i keep windoze VM image on files

Re: BIO_DELETE equivalent for file on FFS filesystem

2012-06-13 Thread Wojciech Puchar
file to take 900MB or... can i call some system function to "punch" holes? I think you can only truncate the file at this time, pretty much like brk() works for memory. BAD. suppose i keep windoze VM image on filesystem which takes 10GB but uses 5GB. i could write simple program to find ou

Re: BIO_DELETE equivalent for file on FFS filesystem

2012-06-13 Thread Xin Li
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 05/26/12 08:06, Wojciech Puchar wrote: > is it possible. suppose i have 1GB file with my data and 100 1 > megabyte parts of it is no longer needed. i could reorganize that > file to take 900MB or... can i call some system function to "punch" > hol

BIO_DELETE equivalent for file on FFS filesystem

2012-05-26 Thread Wojciech Puchar
is it possible. suppose i have 1GB file with my data and 100 1 megabyte parts of it is no longer needed. i could reorganize that file to take 900MB or... can i call some system function to "punch" holes? ___ freebsd-hackers@freebsd.org mailing list htt