1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
samba-mirror/source3/registry
Volker Lendecke 49ca690b4b Introduce "struct stat_ex" as a replacement for SMB_STRUCT_STAT
This patch introduces

struct stat_ex {
        dev_t           st_ex_dev;
        ino_t           st_ex_ino;
        mode_t          st_ex_mode;
        nlink_t         st_ex_nlink;
        uid_t           st_ex_uid;
        gid_t           st_ex_gid;
        dev_t           st_ex_rdev;
        off_t           st_ex_size;
        struct timespec st_ex_atime;
        struct timespec st_ex_mtime;
        struct timespec st_ex_ctime;
        struct timespec st_ex_btime; /* birthtime */
        blksize_t       st_ex_blksize;
        blkcnt_t        st_ex_blocks;
};
typedef struct stat_ex SMB_STRUCT_STAT;

It is really large because due to the friendly libc headers playing macro
tricks with fields like st_ino, so I renamed them to st_ex_xxx.

Why this change? To support birthtime, we already have quite a few #ifdef's at
places where it does not really belong. With a stat struct that we control, we
can consolidate the nanosecond timestamps and the birthtime deep in the VFS
stat calls.

At this moment it is triggered by a request to support the birthtime field for
GPFS. GPFS does not extend the system level struct stat, but instead has a
separate call that gets us the additional information beyond posix. Without
being able to do that within the VFS stat calls, that support would have to be
scattered around the main smbd code.

It will very likely break all the onefs modules, but I think the changes will
be reasonably easy to do.
2009-05-26 17:48:23 +02:00
..
reg_api.c s3:registry: replace typedef REGISTRY_OPS by struct registry_ops 2009-04-27 11:21:04 +02:00
reg_backend_current_version.c s3:registry: replace typedef REGISTRY_OPS by struct registry_ops 2009-04-27 11:21:04 +02:00
reg_backend_db.c s3:registry: replace typedef REGISTRY_OPS by struct registry_ops 2009-04-27 11:21:04 +02:00
reg_backend_hkpt_params.c s3:registry: replace typedef REGISTRY_OPS by struct registry_ops 2009-04-27 11:21:04 +02:00
reg_backend_netlogon_params.c s3:registry: replace typedef REGISTRY_OPS by struct registry_ops 2009-04-27 11:21:04 +02:00
reg_backend_perflib.c s3:registry: replace typedef REGISTRY_OPS by struct registry_ops 2009-04-27 11:21:04 +02:00
reg_backend_printing.c s3-printing: fix debug statement in virtual registry layer 2009-05-06 10:20:52 +02:00
reg_backend_prod_options.c s3:registry: replace typedef REGISTRY_OPS by struct registry_ops 2009-04-27 11:21:04 +02:00
reg_backend_shares.c s3:registry: replace typedef REGISTRY_OPS by struct registry_ops 2009-04-27 11:21:04 +02:00
reg_backend_smbconf.c s3:registry: replace typedef REGISTRY_OPS by struct registry_ops 2009-04-27 11:21:04 +02:00
reg_backend_tcpip_params.c s3:registry: replace typedef REGISTRY_OPS by struct registry_ops 2009-04-27 11:21:04 +02:00
reg_cachehook.c s3:registry: replace typedef REGISTRY_OPS by struct registry_ops 2009-04-27 11:21:04 +02:00
reg_dispatcher.c s3:registry: replace typedef REGISTRY_KEY by struct registry_key_handle 2009-04-27 11:21:04 +02:00
reg_eventlog.c s3:registry: replace typedef REGISTRY_VALUE by struct regval_blob 2009-04-27 11:21:03 +02:00
reg_init_basic.c s3:registry: always provision the registry, not only in smbd. 2009-01-28 12:06:26 +01:00
reg_init_full.c s3:registry: replace typedef REGISTRY_OPS by struct registry_ops 2009-04-27 11:21:04 +02:00
reg_init_smbconf.c s3:registry: replace typedef REGISTRY_OPS by struct registry_ops 2009-04-27 11:21:04 +02:00
reg_objects.c s3:registry: replace typedef REGISTRY_VALUE by struct regval_blob 2009-04-27 11:21:03 +02:00
reg_perfcount.c s3-spoolss: move SYSTEMTIME parsing to a more generic place, as suggested. 2009-03-17 18:39:23 +01:00
reg_util_legacy.c s3:registry: replace typedef REGISTRY_KEY by struct registry_key_handle 2009-04-27 11:21:04 +02:00
reg_util.c registry: make normalize_reg_path() strip leading and trailing '/' chars. 2008-05-08 18:29:08 +02:00
regfio.c Introduce "struct stat_ex" as a replacement for SMB_STRUCT_STAT 2009-05-26 17:48:23 +02:00