| Message ID | 20251230234134.906477-12-sjg@u-boot.org |
|---|---|
| State | New |
| Headers |
Return-Path: <concept-bounces+u-boot-concept=u-boot.org@u-boot.org> X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1767138309; bh=SX4CHj/V6CeUaYLSaV6ZmhWnxrLCB9oJWotJyVtQ23o=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=OLUZwORRSbNCvf5DP7/Wp9NE7OTWC/jdHK6WD8+CnsFMJrks0gkOrLPb5JA7dJdcY fGC7XStf4APYY3cf0+Cescv9uBeBGIP12czpEXFyUnkUf2RylqdBmM6bCKcN0/5Qw2 7M/WzguM6dzyChz/uNOMEa2mLUQmdmZSJP3SnSUzWoBuMaAZSr9wM0FAgFH9qGi1b9 ooLwYMagNOFDFRVywOJ1ZQyU6Pb0L7Lij4m99CRM5AZX/EebZ54yCxMcietY07ED3g 1fPC5fLRSiuaHSNaJP9+XnLqelZOdMO+aMcTrP7hV8RhjE4SaLf2A0IKsvjcggnuo8 yYdJ0BKXTro5Q== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 4B94968F8E for <u-boot-concept@u-boot.org>; Tue, 30 Dec 2025 16:45:09 -0700 (MST) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id U-lLiKNZDxGk for <u-boot-concept@u-boot.org>; Tue, 30 Dec 2025 16:45:09 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1767138309; bh=SX4CHj/V6CeUaYLSaV6ZmhWnxrLCB9oJWotJyVtQ23o=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=OLUZwORRSbNCvf5DP7/Wp9NE7OTWC/jdHK6WD8+CnsFMJrks0gkOrLPb5JA7dJdcY fGC7XStf4APYY3cf0+Cescv9uBeBGIP12czpEXFyUnkUf2RylqdBmM6bCKcN0/5Qw2 7M/WzguM6dzyChz/uNOMEa2mLUQmdmZSJP3SnSUzWoBuMaAZSr9wM0FAgFH9qGi1b9 ooLwYMagNOFDFRVywOJ1ZQyU6Pb0L7Lij4m99CRM5AZX/EebZ54yCxMcietY07ED3g 1fPC5fLRSiuaHSNaJP9+XnLqelZOdMO+aMcTrP7hV8RhjE4SaLf2A0IKsvjcggnuo8 yYdJ0BKXTro5Q== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 3AF2368C0F for <u-boot-concept@u-boot.org>; Tue, 30 Dec 2025 16:45:09 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1767138307; bh=TiqTvFTJ1QCsqmtnSDF0sU+N0HSczr0AkAdhXMgX/g4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NXYsg8OxyxI7cX9k/etmI813Ezk+A/8poeBbPtkelJFF3RxXV+jJEFDaY62IKCCGj Qu4LC8Orl8xU60f5OmOC0t35S83bLMIxoQEOYff2u5ejra0KquGLLsRqVEzattAj/R sWSIFUPgQxI1EQzhEY5gIK3bsd5B9ZVfsgaEgjmSfi+WyVvVbgi7dntaWr6vj8+DIO SoKfU4T707Z25tnkBh30VbWgteAueJ6sWE0s6kmhpZ5kUAAiPaIoJH83Ad53f9q+uH L9ENHVe2cas66CW1zfc8oxD3PqeiaNkVLZDzUV5ZkmPeKvLEEgGEzqo9ZGQobuyq+G i2B5gnzR4GSQg== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 6D3AB68C06; Tue, 30 Dec 2025 16:45:07 -0700 (MST) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10026) with ESMTP id Ok24VNHkeA3L; Tue, 30 Dec 2025 16:45:07 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1767138303; bh=aB7dCY/TJECHoDyqAlOIEfgF0Em2N6UE2NBO+Ac0Aa8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vcyiiA7W7qW3bBNeoHNl5dMHsVpaERjoaALgeysjeJvMmsWQF878KGKlJ+ajmmZ+C Hhvn0h54Gkpviqvln32lRvHMSqLbc0tmpnLsNXqwgtf4gsQVZECtPI2YW1G4fvwptV imC7Q/IUGZx0fAZ5zY0y1QNc50W9/ErUjfeEGH/zA+UXtjUVyO34sne+E6DpA2sWzp 7B795VqYeyCTrBmeq+ohQDoIPdYkFerVbIMSMwOFSZHVv42NV9o7v9YpStbLO6ROaR F2dIGxWH35PvWKAEQX3On4GFZNgS7SYrONsR7jN7rZpJs5mcJqqGBrGq2fy20wZdjz X/iWWIXbl1x6Q== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 2362768C0F; Tue, 30 Dec 2025 16:45:03 -0700 (MST) From: Simon Glass <sjg@u-boot.org> To: U-Boot Concept <concept@u-boot.org> Date: Tue, 30 Dec 2025 16:41:23 -0700 Message-ID: <20251230234134.906477-12-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251230234134.906477-1-sjg@u-boot.org> References: <20251230234134.906477-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: NHX3A7JPF4GVKCGEIJMGCU33AX5E2KMN X-Message-ID-Hash: NHX3A7JPF4GVKCGEIJMGCU33AX5E2KMN X-MailFrom: sjg@u-boot.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Simon Glass <simon.glass@canonical.com>, Claude <noreply@anthropic.com> X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 11/15] ext4l: Return boot-relative time from ktime_get_real_seconds() List-Id: Discussion and patches related to U-Boot Concept <concept.u-boot.org> Archived-At: <https://lists.u-boot.org/archives/list/concept@u-boot.org/message/NHX3A7JPF4GVKCGEIJMGCU33AX5E2KMN/> List-Archive: <https://lists.u-boot.org/archives/list/concept@u-boot.org/> List-Help: <mailto:concept-request@u-boot.org?subject=help> List-Owner: <mailto:concept-owner@u-boot.org> List-Post: <mailto:concept@u-boot.org> List-Subscribe: <mailto:concept-join@u-boot.org> List-Unsubscribe: <mailto:concept-leave@u-boot.org> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit |
| Series |
ext4l: Infrastructure and fixes for write support (part K)
|
|
Commit Message
Simon Glass
Dec. 30, 2025, 11:41 p.m. UTC
From: Simon Glass <simon.glass@canonical.com> The ktime_get_real_seconds() stub returns 0, causing deleted inodes to have zero i_dtime. This causes fsck to complain about deleted inodes with zero deletion time. Instead, use the boot-relative time in seconds. While not a real wall-clock timestamp, it provides a non-zero value that satisfies filesystem-consistency checks. Future work can improve on this, perhaps using an on-board RTC. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Simon Glass <simon.glass@canonical.com> --- fs/ext4l/ext4_uboot.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/fs/ext4l/ext4_uboot.h b/fs/ext4l/ext4_uboot.h index c5eddca3aef..5c66e35662d 100644 --- a/fs/ext4l/ext4_uboot.h +++ b/fs/ext4l/ext4_uboot.h @@ -402,8 +402,8 @@ struct buffer_head *sb_getblk(struct super_block *sb, sector_t block); #define sb_find_get_block(sb, block) ((struct buffer_head *)NULL) #define sync_dirty_buffer(bh) submit_bh(REQ_OP_WRITE, bh) -/* Time functions */ -#define ktime_get_real_seconds() (0) +/* Time functions - use boot-relative time for timestamps */ +#define ktime_get_real_seconds() (get_timer(0) / 1000) #define time_before32(a, b) (0) /* Inode operations - iget_locked and new_inode are in interface.c */