From 3f15b61c7299f1a25a40688f294391a5c331a8c5 Mon Sep 17 00:00:00 2001 From: Christopher Haster Date: Tue, 21 Oct 2025 16:39:29 -0500 Subject: [PATCH] scripts: dbgflags.py: Added LFS3_SEEK_* flags for completeness This required a bit of a hack: LFS3_seek_MODE, which is marked internal to try to minimize confusion, but really doesn't exist in the code at all. But a hack is probably good enough for now. --- scripts/dbgflags.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/dbgflags.py b/scripts/dbgflags.py index ccf48693..7e486d08 100755 --- a/scripts/dbgflags.py +++ b/scripts/dbgflags.py @@ -10,6 +10,7 @@ import functools as ft # Flag prefixes PREFIX_O = ['--o', '--open'] # Filter by LFS3_O_* flags +PREFIX_SEEK = ['--seek'] # Filter by LFS3_SEEK_* flags PREFIX_A = ['--a', '--attr'] # Filter by LFS3_A_* flags PREFIX_F = ['--f', '--format'] # Filter by LFS3_F_* flags PREFIX_M = ['--m', '--mount'] # Filter by LFS3_M_* flags @@ -53,6 +54,12 @@ o_UNCRYST = 0x00800000 # i- File's leaf not fully crystallized o_UNGRAFT = 0x00400000 # i- File's leaf does not match disk o_UNFLUSH = 0x00200000 # i- File's cache does not match disk +# File seek flags +seek_MODE = 0xffffffff # im Seek mode +SEEK_SET = 0 # -^ Seek relative to an absolute position +SEEK_CUR = 1 # -^ Seek relative to the current file position +SEEK_END = 2 # -^ Seek relative to the end of the file + # Custom attribute flags A_MODE = 3 # -m The attr's access mode A_RDONLY = 0 # -^ Open an attr as read only