Hi all, Gluster support a sparse files? example: dd if=/dev/zero of=archive_sparse bs=1M count=0 seek=10239 Create a sparse file with 10GB, show in ls -lh, but in du -h show 512bytes. Thanks for any help. -- Roberto Scudeller Especialista Linux/Unix -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://supercolony.gluster.org/pipermail/gluster-users/attachments/20110428/ce2aaa08/attachment.html>
Hi Roberto, On Thu, Apr 28, 2011 at 8:21 PM, Roberto Scudeller <beto.rvs at gmail.com> wrote:> Hi all, > > Gluster support a sparse files? > > example: dd if=/dev/zero of=archive_sparse bs=1M count=0 seek=10239 > > Create a sparse file with 10GB, show in ls -lh, but in du -h show 512bytes. >That is how it works on the local filesystem as well. Gluster has nothing to do with this, that is how du and ls work. Regards, Sachidananda.
Hi Roberto, On Thu, Apr 28, 2011 at 9:31 PM, sac <sac at gluster.com> wrote:> Hi Roberto, > On Thu, Apr 28, 2011 at 8:21 PM, Roberto Scudeller <beto.rvs at gmail.com> wrote: >> Gluster support a sparse files? >> >> example: dd if=/dev/zero of=archive_sparse bs=1M count=0 seek=10239 >> >> Create a sparse file with 10GB, show in ls -lh, but in du -h show 512bytes. >> > > That is how it works on the local filesystem as well. Gluster has > nothing to do with this, that is how du and ls work. >Here is a small detail I put up on the ls and du behavior with respect to sparse files: http://sacurs.blogspot.com/2011/05/sparse-files-du-vs-ls-h.html Hope it helps. -Sachidananda.