News for hackers. Stuff that matters.
Re:Dropbox Project Infinite by the8472 on Tuesday April 26, 2016 @11:46AM (#11572831)
> and you can do `du -sh` and see that all the files are taking up zero space.

That seems wrong to me. It would violate the assumptions of software that does stat() on directory entries and not only verifies presence but also non-zero size.

So it's risking buggy behavior to gain a latency edge over other networked filesystems. I think smart prefetching while preserving correctness would be better.

Re:Dropbox Project Infinite by catwell on Tuesday April 26, 2016 @12:40PM (#11573383)
du uses `st_blocks`, not `st_size`, so it should be fine for most applications. It is similar to how sparse files behave:

    $ ls
    $ truncate -s 1M foo
    $ ls -lhp
    total 0
    -rw-r--r-- 1 catwell wheel 1.0M Apr 26 18:39 foo
    $ du
    0    .
Re:Dropbox Project Infinite by the8472 on Tuesday April 26, 2016 @03:45PM (#11574977)
All is good then.
Re:Dropbox Project Infinite by Freaky on Tuesday April 26, 2016 @05:46PM (#11575970)
du -A for the "apparent" size.