1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

r12250: Patch from Martin Koeppe <mkoeppe@gmx.de> for #3287

to make the dev/inode numbers match what SFU expects.
If we're using 8 byte inodes we'll lose the top 4 bytes
and replace them with a dev_t instead, but this seem
reasonable to ensure uniqueness.
Jeremy.
(This used to be commit e53574d0b4)
This commit is contained in:
Jeremy Allison 2005-12-14 23:52:58 +00:00 committed by Gerald (Jerry) Carter
parent 3a405096c5
commit 91efc453ab

View File

@ -1436,8 +1436,8 @@ static BOOL get_lanman2_dir_entry(connection_struct *conn,
p +=4;
}
SIVAL(p,0,0); p += 4; /* Unknown - reserved ? */
SIVAL(p,0,sbuf.st_dev); p += 4;
SIVAL(p,0,sbuf.st_ino); p += 4;
SIVAL(p,0,sbuf.st_ino); p += 4; /* FileIndexLow */
SIVAL(p,0,sbuf.st_dev); p += 4; /* FileIndexHigh */
len = srvstr_push(outbuf, p, fname, -1, STR_TERMINATE_ASCII);
SIVAL(q, 0, len);
p += len;
@ -1486,8 +1486,8 @@ static BOOL get_lanman2_dir_entry(connection_struct *conn,
}
p += 26;
SSVAL(p,0,0); p += 2; /* Reserved ? */
SIVAL(p,0,sbuf.st_dev); p += 4;
SIVAL(p,0,sbuf.st_ino); p += 4;
SIVAL(p,0,sbuf.st_ino); p += 4; /* FileIndexLow */
SIVAL(p,0,sbuf.st_dev); p += 4; /* FileIndexHigh */
len = srvstr_push(outbuf, p, fname, -1, STR_TERMINATE_ASCII);
SIVAL(q,0,len);
p += len;
@ -3216,8 +3216,8 @@ total_data=%u (should be %u)\n", (unsigned int)total_data, (unsigned int)IVAL(pd
BasicFileInformationTest. -tpot */
DEBUG(10,("call_trans2qfilepathinfo: SMB_FILE_INTERNAL_INFORMATION\n"));
SIVAL(pdata,0,sbuf.st_dev);
SIVAL(pdata,4,sbuf.st_ino);
SIVAL(pdata,4,sbuf.st_ino); /* FileIndexLow */
SIVAL(pdata,0,sbuf.st_dev); /* FileIndexHigh */
data_size = 8;
break;