Re: [zfs-discuss] ls reports incorrect file size

2011-05-02 Thread Eric D. Mudama
On Mon, May 2 at 15:30, Brandon High wrote: On Mon, May 2, 2011 at 1:56 PM, Eric D. Mudama wrote: that the application would have done the seek+write combination, since on NTFS (which doesn't support sparse) these would have been real 1.5GB files, and there would be hundreds or thousands of th

Re: [zfs-discuss] ls reports incorrect file size

2011-05-02 Thread Brandon High
On Mon, May 2, 2011 at 1:56 PM, Eric D. Mudama wrote: > that the application would have done the seek+write combination, since > on NTFS (which doesn't support sparse) these would have been real > 1.5GB files, and there would be hundreds or thousands of them in > normal usage. NTFS supports spars

Re: [zfs-discuss] ls reports incorrect file size

2011-05-02 Thread Nico Williams
Then again, Windows apps may be doing seek+write to pre-allocate storage. ___ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Re: [zfs-discuss] ls reports incorrect file size

2011-05-02 Thread Bob Friesenhahn
On Mon, 2 May 2011, Eric D. Mudama wrote: Yea, kept googling and it makes sense. I guess I am simply surprised that the application would have done the seek+write combination, since on NTFS (which doesn't support sparse) these would have been real 1.5GB files, and there would be hundreds or thou

Re: [zfs-discuss] ls reports incorrect file size

2011-05-02 Thread Nico Williams
On Mon, May 2, 2011 at 3:56 PM, Eric D. Mudama wrote: > Yea, kept googling and it makes sense.  I guess I am simply surprised > that the application would have done the seek+write combination, since > on NTFS (which doesn't support sparse) these would have been real > 1.5GB files, and there would

Re: [zfs-discuss] ls reports incorrect file size

2011-05-02 Thread Eric D. Mudama
On Mon, May 2 at 20:50, Darren J Moffat wrote: On 05/ 2/11 08:41 PM, Eric D. Mudama wrote: On Mon, May 2 at 14:01, Bob Friesenhahn wrote: On Mon, 2 May 2011, Eric D. Mudama wrote: Hi. While doing a scan of disk usage, I noticed the following oddity. I have a directory of files (named file.d

Re: [zfs-discuss] ls reports incorrect file size

2011-05-02 Thread Neil Perrin
On 05/02/11 14:02, Nico Williams wrote: Also, sparseness need not be apparent to applications. Until recent improvements to lseek(2) to expose hole/non-hole offsets, the only way to know about sparseness was to notice that a file's reported size is more than the file's reported filesystem blocks

Re: [zfs-discuss] ls reports incorrect file size

2011-05-02 Thread Bob Friesenhahn
On Mon, 2 May 2011, Eric D. Mudama wrote: These are probably just sparse files. Nothing to be alarmed about. They were created via CIFS. I thought sparse files were an iSCSI concept, no? Sparse files are a traditional Unix filesystem feature. Many/most database files are sparse. All tha

Re: [zfs-discuss] ls reports incorrect file size

2011-05-02 Thread Nico Williams
Also, sparseness need not be apparent to applications. Until recent improvements to lseek(2) to expose hole/non-hole offsets, the only way to know about sparseness was to notice that a file's reported size is more than the file's reported filesystem blocks times the block size. Sparse files in Uni

Re: [zfs-discuss] ls reports incorrect file size

2011-05-02 Thread Casper . Dik
>On Mon, May 2 at 14:01, Bob Friesenhahn wrote: >>On Mon, 2 May 2011, Eric D. Mudama wrote: >> >>> >>>Hi. While doing a scan of disk usage, I noticed the following oddity. >>>I have a directory of files (named file.dat for this example) that all >>>appear as ~1.5GB when using 'ls -l', but that (

Re: [zfs-discuss] ls reports incorrect file size

2011-05-02 Thread Darren J Moffat
On 05/ 2/11 08:41 PM, Eric D. Mudama wrote: On Mon, May 2 at 14:01, Bob Friesenhahn wrote: On Mon, 2 May 2011, Eric D. Mudama wrote: Hi. While doing a scan of disk usage, I noticed the following oddity. I have a directory of files (named file.dat for this example) that all appear as ~1.5GB wh

Re: [zfs-discuss] ls reports incorrect file size

2011-05-02 Thread Eric D. Mudama
On Mon, May 2 at 14:01, Bob Friesenhahn wrote: On Mon, 2 May 2011, Eric D. Mudama wrote: Hi. While doing a scan of disk usage, I noticed the following oddity. I have a directory of files (named file.dat for this example) that all appear as ~1.5GB when using 'ls -l', but that (correctly) appe

Re: [zfs-discuss] ls reports incorrect file size

2011-05-02 Thread Roy Sigurd Karlsbakk
> > Hi. While doing a scan of disk usage, I noticed the following > > oddity. > > I have a directory of files (named file.dat for this example) that > > all > > appear as ~1.5GB when using 'ls -l', but that (correctly) appear as > > ~250KB > > files when using 'ls -s' or du commands: > > These are

Re: [zfs-discuss] ls reports incorrect file size

2011-05-02 Thread Bob Friesenhahn
On Mon, 2 May 2011, Eric D. Mudama wrote: Hi. While doing a scan of disk usage, I noticed the following oddity. I have a directory of files (named file.dat for this example) that all appear as ~1.5GB when using 'ls -l', but that (correctly) appear as ~250KB files when using 'ls -s' or du comma

[zfs-discuss] ls reports incorrect file size

2011-05-02 Thread Eric D. Mudama
Hi. While doing a scan of disk usage, I noticed the following oddity. I have a directory of files (named file.dat for this example) that all appear as ~1.5GB when using 'ls -l', but that (correctly) appear as ~250KB files when using 'ls -s' or du commands: edmudama$ ls -l file.dat -rwxrwx--