This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch reproducible-widget-previews
in repository efl.

View the commit online.

commit d90b8dd50a48212f69b25af61d373afd65c32b0f
Author: Carsten Haitzler <[email protected]>
AuthorDate: Thu May 14 18:18:49 2026 +0100

    eina - eina file - also match dev and inode
    
    inodes are unique per device.. but not between devices. dev + inode is
    unique.
    
    @fix
---
 src/lib/eina/eina_file_common.h | 1 +
 src/lib/eina/eina_file_posix.c  | 3 +++
 2 files changed, 4 insertions(+)

diff --git a/src/lib/eina/eina_file_common.h b/src/lib/eina/eina_file_common.h
index 67cfff5d94..1478f3a945 100644
--- a/src/lib/eina/eina_file_common.h
+++ b/src/lib/eina/eina_file_common.h
@@ -79,6 +79,7 @@ struct _Eina_File
    unsigned long long length;  /**< The length of the file in bytes. */
    time_t mtime;               /**< The last modified time. */
    ino_t inode;                /**< The inode. */
+   dev_t dev;                  /**< The fs device. */
 #ifdef _STAT_VER_LINUX
    unsigned long int mtime_nsec; /**< The nano version of the last modified time. */
 #endif
diff --git a/src/lib/eina/eina_file_posix.c b/src/lib/eina/eina_file_posix.c
index 8656c93536..6c075941c3 100644
--- a/src/lib/eina/eina_file_posix.c
+++ b/src/lib/eina/eina_file_posix.c
@@ -411,6 +411,7 @@ _eina_file_timestamp_compare(Eina_File *f, struct stat *st)
    if (f->mtime != st->st_mtime) return EINA_FALSE;
    if (f->length != (unsigned long long) st->st_size) return EINA_FALSE;
    if (f->inode != st->st_ino) return EINA_FALSE;
+   if (f->dev != st->st_dev) return EINA_FALSE;
 #ifdef _STAT_VER_LINUX
 # ifdef st_mtime
    if (f->mtime_nsec != (unsigned long int)st->st_mtim.tv_nsec)
@@ -931,6 +932,7 @@ eina_file_open(const char *path, Eina_Bool shared)
         n->mtime_nsec = (unsigned long int)file_stat.st_mtim.tv_nsec;
 #endif
         n->inode = file_stat.st_ino;
+        n->dev = file_stat.st_dev;
         n->fd = fd;
         n->shared = shared;
         n->refcount = 1;
@@ -999,6 +1001,7 @@ eina_file_refresh(Eina_File *file)
    file->mtime_nsec = (unsigned long int)file_stat.st_mtim.tv_nsec;
 #endif
    file->inode = file_stat.st_ino;
+   file->dev = file_stat.st_dev;
 
    return r;
 }

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to