534 Commits

Author SHA1 Message Date
bootandy 4944d517f4 Apparent size mode: handle hard links.
If we are viewing apparent size then each hard linked file should be
counted. Not just the first one.
2018-03-22 14:36:17 -04:00
bootandy cce656ab4c rm dead code 2018-03-22 14:30:30 -04:00
bootandy 03a517a310 block size is always 512 on rust 2018-03-22 14:29:59 -04:00
andy boot 3796c39ac9 Merge pull request #3 from nebkor/inodes_refactor
Broken into files, inode/dev changes from inodes branch taken
2018-03-22 12:34:12 -04:00
andy boot 0357fc5e71 Merge branch 'master' into inodes_refactor 2018-03-22 12:30:03 -04:00
Joe Ardent aa3f411974 fixes blocksize error in get_blocksize().
Under Linux, MetadataExt::st_blocks() returns then number of 512B
blocks.

https://doc.rust-lang.org/1.23.0/std/os/linux/fs/trait.MetadataExt.html#tymethod.st_blocks
2018-03-22 00:34:14 -07:00
Joe Ardent eb69ad19a0 break platform cfg code into utils submodule 2018-03-22 00:00:21 -07:00
Joe Ardent c127580057 Bring over dev/inode pair changes from bootandy's repo 2018-03-21 23:47:37 -07:00
andy boot c978c6cf93 Merge pull request #2 from bootandy/inodes
Inodes
2018-03-22 00:25:17 -04:00
bootandy f72a67132c Remove commented out code 2018-03-21 19:50:13 -04:00
bootandy 4d1f881c17 fix: inodes are only unique with dev
First iteration adding dev to inodes to form a tuple to go into our
'have we seen this before' hashset.
inodes are not unique across partitions
2018-03-21 19:50:08 -04:00
Joe Ardent e75a666a4c better display-children-finding code 2018-03-21 13:43:52 -07:00
Joe Ardent 617b0d2971 Merge branch 'nebkor' 2018-03-21 10:56:15 -07:00
Joe Ardent 8fa83e3836 First step of refactor done. 2018-03-21 10:55:03 -07:00
Joe Ardent 7fa2ce3434 start of refactor 2018-03-21 10:55:03 -07:00
bootandy b0e971891e Fix basic message 2018-03-21 12:14:17 -04:00
andy boot cef95fa415 Merge pull request #1 from nebkor/master
Minor cleanup, prettier output
2018-03-21 12:12:19 -04:00
Joe Ardent 381d286847 use accessor and creator methods for new types in lib 2018-03-21 00:09:23 -07:00
Joe Ardent aa963defda update sample output with new box-drawing characters 2018-03-20 22:50:54 -07:00
Joe Ardent 0faf795284 First step of refactor done. 2018-03-20 22:40:53 -07:00
Joe Ardent b7271b1da2 start of refactor 2018-03-20 22:09:29 -07:00
Joe Ardent 99f462f023 s/sibblings/siblings/g 2018-03-20 20:40:36 -07:00
Joe Ardent 1c80cbf28b Make printing slightly prettier 2018-03-20 19:23:36 -07:00
Joe Ardent f802d7a6b4 quiet some clippy warnings 2018-03-20 19:23:36 -07:00
Joe Ardent b4c6c68527 minor whitespace changes from rustfmt 2018-03-20 19:10:24 -07:00
bootandy 2c495364c7 None core OS: fix code bug v0.1.2 2018-03-19 16:11:55 -04:00
bootandy 32b653fe41 travis build file
no idea if this will work
2018-03-19 16:11:55 -04:00
bootandy ea0d9eba02 Update Readme 2018-03-19 12:04:00 -04:00
bootandy ebc153f578 Use len instead of blocks.
len is simpler
2018-03-17 01:59:22 -04:00
bootandy fc3fbc6f64 hack 2018-03-16 22:31:09 -04:00
bootandy 3d0d5cee33 human readable output 2018-03-16 19:02:33 -04:00
bootandy 9f5fe4d01e clean up 2018-03-16 16:14:09 -04:00
bootandy 8356cc6e1b hacking away on an experiment 2018-03-16 15:51:44 -04:00
andy boot 88a8d19511 Initial commit 2018-03-11 22:01:59 -04:00