diff options
author | dzwdz | 2021-09-22 16:23:40 +0200 |
---|---|---|
committer | dzwdz | 2021-09-22 16:23:40 +0200 |
commit | 67bb45ec35874a6a5580fe8fbc73484837255076 (patch) | |
tree | 260f831afb203019a61b24bcc72298d44f1bb96a /src/init/tar.c | |
parent | ad81d4904ca9f710cf4d56de31eca994dc005844 (diff) |
remove some old leftover code in tar_driver
Diffstat (limited to 'src/init/tar.c')
-rw-r--r-- | src/init/tar.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/init/tar.c b/src/init/tar.c index 691768c..42efcdf 100644 --- a/src/init/tar.c +++ b/src/init/tar.c @@ -39,19 +39,6 @@ void tar_driver(handle_t back, void *base) { break; } } - - // iterate over all sectors, printing filenames - while (0 == memcmp(base + 257, "ustar", 5)) { - int size = oct_parse(base + 124, 12); - - _syscall_write(tty_fd, base, 100, 0); - _syscall_write(tty_fd, " ", 1, 0); - - base += 512; // skip metadata sector - base += (size + 511) & ~511; // skip file (size rounded up to 512) - // TODO might pagefault if the last sector was at a page boundary - } - _syscall_write(tty_fd, "done.", 5, 0); } static int tar_open(const char *path, int len, void *base, size_t base_len) { |