Re: [CentOS] [semi-OT] C7 Possible bug but I can't determine what tool has the problem

2020-01-15 Thread Alessandro Baggi
Il 16/01/20 02:21, Gordon Messmer ha scritto: On 1/15/20 8:18 AM, Alessandro Baggi wrote: Then I sync src/ to dest/ using "rsync -avSĀ  src/ dest/", all ok but when I run "du -h dest/testfile" I get 0 and if I run "du -b dest/testfile" I get the correct size in bytes. That's not a bug,

Re: [CentOS] [semi-OT] C7 Possible bug but I can't determine what tool has the problem

2020-01-15 Thread Gordon Messmer
On 1/15/20 8:18 AM, Alessandro Baggi wrote: Then I sync src/ to dest/ using "rsync -avSĀ  src/ dest/", all ok but when I run "du -h dest/testfile" I get 0 and if I run "du -b dest/testfile" I get the correct size in bytes. That's not a bug, that's what sparse files are. In POSIX systems,

Re: [CentOS] [semi-OT] C7 Possible bug but I can't determine what tool has the problem

2020-01-15 Thread Alessandro Baggi
Il 15/01/20 18:54, Jon Pruente ha scritto: On Wed, Jan 15, 2020 at 11:38 AM Alessandro Baggi < alessandro.ba...@gmail.com> wrote: Hi Jon, I wrote in the first mail the script with the current order of command that I used. Try to run in a bash script and you will see the result. If not my

Re: [CentOS] [semi-OT] C7 Possible bug but I can't determine what tool has the problem

2020-01-15 Thread Jon Pruente
On Wed, Jan 15, 2020 at 11:38 AM Alessandro Baggi < alessandro.ba...@gmail.com> wrote: > Hi Jon, > I wrote in the first mail the script with the current order of command > that I used. Try to run in a bash script and you will see the result. > > If not my sequence is: > > dd if=/dev/zero

Re: [CentOS] [semi-OT] C7 Possible bug but I can't determine what tool has the problem

2020-01-15 Thread Alessandro Baggi
Il 15/01/20 17:51, Jon Pruente ha scritto: On Wed, Jan 15, 2020 at 10:18 AM Alessandro Baggi < alessandro.ba...@gmail.com> wrote: I made several test to see what happens and noticed that removing -S (--sparse) from rsync command problem does not occour. In another test, thinking about a

Re: [CentOS] [semi-OT] C7 Possible bug but I can't determine what tool has the problem

2020-01-15 Thread Jon Pruente
On Wed, Jan 15, 2020 at 10:18 AM Alessandro Baggi < alessandro.ba...@gmail.com> wrote: > I made several test to see what happens and noticed that removing -S > (--sparse) from rsync command problem does not occour. > In another test, thinking about a problem on 0ed file, I tried file > generation

[CentOS] [semi-OT] C7 Possible bug but I can't determine what tool has the problem

2020-01-15 Thread Alessandro Baggi
Hi all, I'm writing a script that uses rsync to sync 2 dirs on C7. I noticed a strange behaviour. I have 2 dir: src and dest. In src dir I generate a testfile with "dd if=/dev/zero of=testfile bs=1M count=100" and when I run "du -h testfile" I get the correct result. Then I sync src/ to dest/