Fix 64-bit filesystem and type handling

This commit is contained in:
Mario Fetka
2026-04-20 23:39:42 +02:00
parent efd1054c96
commit 368b36eb95
6 changed files with 52 additions and 34 deletions

View File

@@ -155,8 +155,8 @@ typedef struct {
typedef struct {
int volume;
int dev;
int inode;
mars_dev_t dev;
mars_ino_t inode;
int idle; /* idle state */
int mode_flags; /*
@@ -245,7 +245,7 @@ static void add_trustee_node(FILE_TRUSTEE_NODE *trn)
}
}
static FILE_TRUSTEE_NODE *find_trustee_node(int volume, int dev, int inode)
static FILE_TRUSTEE_NODE *find_trustee_node(int volume, mars_dev_t dev, mars_ino_t inode)
{
if (vol_trustees_were_changed(volume))
return(NULL);
@@ -325,7 +325,7 @@ static void creat_trustee_path(int volume, int dev, ino_t inode, uint8 *path)
}
}
static int put_trustee_to_disk(int volume, int dev, ino_t inode, uint32 id, int trustee)
static int put_trustee_to_disk(int volume, dev_t dev, ino_t inode, uint32 id, int trustee)
/* is always called with uid = 0 */
/* if id=0, it means inherited_mask */
{
@@ -349,7 +349,7 @@ static int put_trustee_to_disk(int volume, int dev, ino_t inode, uint32 id, int
return(symlink(btrustee, buf) ? -0xff : 0);
}
static int get_trustee_from_disk(int volume, int dev, ino_t inode, uint32 id, int *trustee)
static int get_trustee_from_disk(int volume, dev_t dev, ino_t inode, uint32 id, int *trustee)
/*
* if id=0, it means inherited_mask
* return 0 if 0, < 0 if error
@@ -382,7 +382,7 @@ static int get_trustee_from_disk(int volume, int dev, ino_t inode, uint32 id, in
return(-0xff);
}
static int del_trustee_from_disk(int volume, int dev, ino_t inode, uint32 id)
static int del_trustee_from_disk(int volume, dev_t dev, ino_t inode, uint32 id)
/* removes users id trustee */
{
char buf[256];