1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
samba-mirror/source3/web
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
..
cgi.c Introduce "struct stat_ex" as a replacement for SMB_STRUCT_STAT 2009-05-26 17:48:23 +02:00
diagnose.c This is a large patch (sorry). Migrate from struct in_addr 2007-10-24 14:16:54 -07:00
neg_lang.c Fix more "ignore return value" warnings from gcc 4.3. 2008-12-30 18:24:39 -08:00
startstop.c Remove the char[1024] strings from dynconfig. Replace 2007-12-10 11:30:37 -08:00
statuspage.c Convert Samba3 to use the common lib/util/charset API 2009-04-14 12:53:56 +10:00
swat_proto.h swat: freeze swat_proto.h from "make proto" 2008-05-18 23:16:38 +02:00
swat.c Convert Samba3 to use the common lib/util/charset API 2009-04-14 12:53:56 +10:00