diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2019-11-29 15:02:42 +0300 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2019-11-29 15:02:42 +0300 |
commit | 42d22580426e596cc687f5c9b7c1f4df5ce159dd (patch) | |
tree | 66dc29337551f1b147da02d98080975f1966b8e4 | |
parent | 88b3423889764791a37c17b8f5205577a53fd029 (diff) | |
download | apt-42d22580426e596cc687f5c9b7c1f4df5ce159dd.tar.gz |
Just remove statfs()
-rw-r--r-- | apt-private/private-download.cc | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/apt-private/private-download.cc b/apt-private/private-download.cc index 16d11255b..069bc6e67 100644 --- a/apt-private/private-download.cc +++ b/apt-private/private-download.cc @@ -126,7 +126,6 @@ bool AcquireRun(pkgAcquire &Fetcher, int const PulseInterval, bool * const Failu /*}}}*/ bool CheckFreeSpaceBeforeDownload(std::string const &Dir, unsigned long long FetchBytes)/*{{{*/ { - uint32_t const RAMFS_MAGIC = 0x858458f6; /* Check for enough free space, but only if we are actually going to download */ if (_config->FindB("APT::Get::Print-URIs", false) == true || @@ -147,12 +146,6 @@ bool CheckFreeSpaceBeforeDownload(std::string const &Dir, unsigned long long Fet unsigned long long const FreeBlocks = _config->Find("APT::Sandbox::User").empty() ? Buf.f_bfree : Buf.f_bavail; if (FreeBlocks < (FetchBytes / Buf.f_bsize)) { - struct statfs Stat; - if (statfs(Dir.c_str(),&Stat) != 0 -#ifdef HAVE_STRUCT_STATFS_F_TYPE - || Stat.f_type != RAMFS_MAGIC -#endif - ) return _error->Error(_("You don't have enough free space in %s."), Dir.c_str()); } |