Unverified Commit 545b68c9 authored by Tommaso Tocci's avatar Tommaso Tocci
Browse files

Remove gid/uid from metadata

gid and uid metadata fields have never been used and can be removed
safely
parent 60b1a186
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -17,8 +17,6 @@ struct FsConfig {
    bool atime_state;
    bool mtime_state;
    bool ctime_state;
    bool uid_state;
    bool gid_state;
    bool link_cnt_state;
    bool blocks_state;

+0 −10
Original line number Diff line number Diff line
@@ -51,8 +51,6 @@ private:
    bool atime_state_;
    bool mtime_state_;
    bool ctime_state_;
    bool uid_state_;
    bool gid_state_;
    bool link_cnt_state_;
    bool blocks_state_;

@@ -146,14 +144,6 @@ public:

    void ctime_state(bool ctime_state);

    bool uid_state() const;

    void uid_state(bool uid_state);

    bool gid_state() const;

    void gid_state(bool gid_state);

    bool link_cnt_state() const;

    void link_cnt_state(bool link_cnt_state);
+0 −2
Original line number Diff line number Diff line
@@ -15,8 +15,6 @@
#define MDATA_USE_ATIME false
#define MDATA_USE_MTIME false
#define MDATA_USE_CTIME false
#define MDATA_USE_UID false
#define MDATA_USE_GID false
#define MDATA_USE_LINK_CNT false
#define MDATA_USE_BLOCKS false

+0 −6
Original line number Diff line number Diff line
@@ -13,8 +13,6 @@ private:
    time_t atime_;         // access time. gets updated on file access unless mounted with noatime
    time_t mtime_;         // modify time. gets updated when file content is modified.
    time_t ctime_;         // change time. gets updated when the file attributes are changed AND when file content is modified.
    uid_t uid_;
    gid_t gid_;
    mode_t mode_;
    nlink_t link_count_;   // number of names for this inode (hardlinks)
    size_t size_;          // size_ in bytes, might be computed instead of stored
@@ -38,10 +36,6 @@ public:
    void mtime(time_t mtime_);
    time_t ctime() const;
    void ctime(time_t ctime_);
    uid_t uid() const;
    void uid(uid_t uid_);
    gid_t gid() const;
    void gid(gid_t gid_);
    mode_t mode() const;
    void mode(mode_t mode_);
    nlink_t link_count() const;
+0 −4
Original line number Diff line number Diff line
@@ -41,8 +41,6 @@ MERCURY_GEN_PROC(rpc_update_metadentry_in_t,
((hg_int64_t) (ctime))\
((hg_bool_t) (nlink_flag))\
((hg_bool_t) (mode_flag))\
((hg_bool_t) (uid_flag))\
((hg_bool_t) (gid_flag))\
((hg_bool_t) (size_flag))\
((hg_bool_t) (block_flag))\
((hg_bool_t) (atime_flag))\
@@ -100,8 +98,6 @@ MERCURY_GEN_PROC(rpc_config_out_t, ((hg_const_string_t) (mountdir))
((hg_bool_t) (atime_state)) \
((hg_bool_t) (mtime_state)) \
((hg_bool_t) (ctime_state)) \
((hg_bool_t) (uid_state)) \
((hg_bool_t) (gid_state)) \
((hg_bool_t) (link_cnt_state)) \
((hg_bool_t) (blocks_state)) \
((hg_uint32_t) (uid)) \
Loading