From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6979144214095331328 X-Received: by 2002:a37:6d07:: with SMTP id i7mr30670322qkc.472.1624958644865; Tue, 29 Jun 2021 02:24:04 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:620a:1648:: with SMTP id c8ls4669429qko.1.gmail; Tue, 29 Jun 2021 02:24:04 -0700 (PDT) X-Received: by 2002:a05:620a:307:: with SMTP id s7mr28753514qkm.213.1624958644472; Tue, 29 Jun 2021 02:24:04 -0700 (PDT) Received: by 2002:a05:620a:200a:b029:3b3:acd9:e19 with SMTP id af79cd13be357-3b3acd923d1ms85a; Tue, 29 Jun 2021 02:22:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzZ+/b1HWruqvLW8trJ25WfJZShso5xGb6fpiNU2qoth40sq2tmZxd5Noi60Ui0lZfq0QDz X-Received: by 2002:adf:a355:: with SMTP id d21mr7288887wrb.65.1624958549977; Tue, 29 Jun 2021 02:22:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624958549; cv=none; d=google.com; s=arc-20160816; b=h3qNorhGoVqU/RtWGQYzJuB++fyrlzDGeAhqh0EHAqHa1buSkVoBc8Wny0EHUZbOMK bugN8XW2cvtrK1iX3RYIyQ/4iH8a20XL03uTe1f/Nk0j9egcA4/2Nk9n8I47tB2se3AH AYMJO67quC1Y56qyFNhDtDOc8wbkwEuJuVISPvuRtCcPD34pXE0dy5qoevpOin4jNrnj 43a24GYxtVwMYYCvZV7GFGklurQxp/7agxtt1ZvSn9MxvlPz6pg3zSAu6xYIiCags3K+ BiAWMwOchS2Vs3lBUqJOZsm+nX5wDcblpClT3g13m8MKZ0vYrmZub99lA13VbRSgvMQQ Xt9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from; bh=WQhg3Y7cHu7rqIYSZbvGaSlj5b8R3WgEekHSZB7DZx0=; b=oSIDwlPCJKFcQKjz5u1nhO/rDjBcCmhakS3q7elRG6/1bP6hilcdJvs448zVY/+IAR s79LnTCCQHUP5bpyDNQomeGMi291bI2njcsaAul4V8pDUsS2+rlnQ6j2Rrq49Vu0tEec WzrjmqJoEHFJ1x59lgj93TYD9Pnt516HyaBO19hrnnKHrJnAHV4B6qb2WdnALKR9WQSV Jb9r59XBDG8ac1CtppgpTzDGufK6AHtdOQOTuIGg+TODSMle3FEgiSRpxD5VtD6N13xi bsiBINBl2xmG26RF+UB/IWL1DJYACmIPFmsXwGRAXgXQ/XeQbIMAz4tP0kIlZRALqaPT YSUw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de Return-Path: Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id f16si349171wrr.5.2021.06.29.02.22.29 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 29 Jun 2021 02:22:29 -0700 (PDT) Received-SPF: pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de Received: from baighyz.m.ilbers.de (host-80-81-17-52.static.customer.m-online.net [80.81.17.52]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8) with ESMTPSA id 15T9MP5P003145 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 29 Jun 2021 11:22:29 +0200 From: Uladzimir Bely To: isar-users@googlegroups.com Subject: [PATCH v2 1/3] Revert "wic: Warn if an ext filesystem affected by the Y2038 problem is used" Date: Tue, 29 Jun 2021 11:22:23 +0200 Message-Id: <20210629092225.18415-2-ubely@ilbers.de> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210629092225.18415-1-ubely@ilbers.de> References: <20210629092225.18415-1-ubely@ilbers.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-TUID: ER94iuKw9lm0 From: Florian Bezdeka This reverts commit aa5dd75a7314798bba5b413eea2886983449bd28. Signed-off-by: Florian Bezdeka Signed-off-by: Uladzimir Bely --- scripts/lib/wic/partition.py | 38 ------------------------------------ 1 file changed, 38 deletions(-) diff --git a/scripts/lib/wic/partition.py b/scripts/lib/wic/partition.py index 4a5a31e..85eb15c 100644 --- a/scripts/lib/wic/partition.py +++ b/scripts/lib/wic/partition.py @@ -270,8 +270,6 @@ class Partition(): mkfs_cmd = "fsck.%s -pvfD %s" % (self.fstype, rootfs) exec_native_cmd(mkfs_cmd, native_sysroot, pseudo=pseudo) - self.check_for_Y2038_problem(rootfs, native_sysroot) - def prepare_rootfs_btrfs(self, rootfs, oe_builddir, rootfs_dir, native_sysroot, pseudo): """ @@ -358,8 +356,6 @@ class Partition(): (self.fstype, extraopts, label_str, self.fsuuid, rootfs) exec_native_cmd(mkfs_cmd, native_sysroot) - self.check_for_Y2038_problem(rootfs, native_sysroot) - def prepare_empty_partition_btrfs(self, rootfs, oe_builddir, native_sysroot): """ @@ -421,37 +417,3 @@ class Partition(): mkswap_cmd = "mkswap %s -U %s %s" % (label_str, self.fsuuid, path) exec_native_cmd(mkswap_cmd, native_sysroot) - - def check_for_Y2038_problem(self, rootfs, native_sysroot): - """ - Check if the filesystem is affected by the Y2038 problem - (Y2038 problem = 32 bit time_t overflow in January 2038) - """ - def get_err_str(part): - err = "The {} filesystem {} has no Y2038 support." - if part.mountpoint: - args = [part.fstype, "mounted at %s" % part.mountpoint] - elif part.label: - args = [part.fstype, "labeled %s" % part.label] - elif part.part_name: - args = [part.fstype, "in partition %s" % part.part_name] - else: - args = [part.fstype, ""] - return err.format(*args) - - ret, out = exec_native_cmd("dumpe2fs %s" % rootfs, native_sysroot) - - # ext2 and ext3 are always affected by the Y2038 problem - if self.fstype in ["ext2", "ext3"]: - logger.warn(get_err_str(self)) - return - - # if ext4 is affected by the Y2038 problem depends on the inode size - # Remember: inode size depends on the file system size - for line in out.splitlines(): - if line.startswith("Inode size:"): - size = int(line.split(":")[1].strip()) - if size < 256: - logger.warn("%s Inodes (of size %d) are too small." % \ - (get_err_str(self), size)) - break \ No newline at end of file -- 2.20.1