Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F158903808
D15064.id41455.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
951 B
Referenced Files
None
Subscribers
None
D15064.id41455.diff
View Options
Index: stand/libsa/ufs.c
===================================================================
--- stand/libsa/ufs.c
+++ stand/libsa/ufs.c
@@ -124,6 +124,7 @@
ufs2_daddr_t f_buf_blkno; /* block number of data block */
char *f_buf; /* buffer for data block */
size_t f_buf_size; /* size of data block */
+ int f_inumber; /* inumber */
};
#define DIP(fp, field) \
((fp)->f_fs->fs_magic == FS_UFS1_MAGIC ? \
@@ -190,6 +191,7 @@
fp->f_buf_blkno = -1;
}
fp->f_seekp = 0;
+ fp->f_inumber = inumber;
out:
free(buf);
return (rc);
@@ -836,6 +838,15 @@
sb->st_uid = DIP(fp, di_uid);
sb->st_gid = DIP(fp, di_gid);
sb->st_size = DIP(fp, di_size);
+ sb->st_mtime = DIP(fp, di_mtime);
+ /*
+ * We need something to differentiate devs.
+ * Better ideas than xor'ing two 32bit values into one
+ * are welcome.
+ */
+ sb->st_dev = (dev_t)(fp->f_fs->fs_id[0] ^ fp->f_fs->fs_id[1]);
+ sb->st_ino = fp->f_inumber;
+
return (0);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jun 8, 1:15 PM (2 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33812506
Default Alt Text
D15064.id41455.diff (951 B)
Attached To
Mode
D15064: Add st_ino etc to libsa ufs_stat
Attached
Detach File
Event Timeline
Log In to Comment