libfsdriver: preinitialize stat.st_ino
The stat.st_ino field must always be filled with the inode number given as part of the fdr_stat request anyway, so libfsdriver can simply fill in the number and allow the file system not to bother. Change-Id: Ia7a849d0b23dfc83010df0d48fa26e4225427694
This commit is contained in:
@@ -45,7 +45,6 @@ int fs_stat(ino_t ino_nr, struct stat *statbuf)
|
||||
/* true iff special */
|
||||
s = (mo == I_CHAR_SPECIAL || mo == I_BLOCK_SPECIAL);
|
||||
|
||||
statbuf->st_ino = va.va_fileid;
|
||||
statbuf->st_mode = va.va_mode;
|
||||
statbuf->st_nlink = va.va_nlink;
|
||||
statbuf->st_uid = va.va_uid;
|
||||
|
||||
Reference in New Issue
Block a user