Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F174447662
D60262.id188499.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D60262.id188499.diff
View Options
diff --git a/stand/libsa/zfs/zfsimpl.c b/stand/libsa/zfs/zfsimpl.c
--- a/stand/libsa/zfs/zfsimpl.c
+++ b/stand/libsa/zfs/zfsimpl.c
@@ -3785,7 +3785,8 @@
}
static int
-zfs_dnode_readlink(const spa_t *spa, dnode_phys_t *dn, char *path, size_t psize)
+zfs_dnode_readlink(struct zfsmount *mount, dnode_phys_t *dn, char *path,
+ size_t psize)
{
int rc = 0;
@@ -3810,7 +3811,7 @@
if (buf == NULL)
rc = ENOMEM;
else
- rc = zio_read(spa, bp, buf);
+ rc = zio_read(mount->spa, bp, buf);
if (rc != 0) {
free(buf);
return (rc);
@@ -3831,7 +3832,7 @@
sizeof(znode_phys_t) <= sizeof(dn->dn_bonus)) {
memcpy(path, &dn->dn_bonus[sizeof(znode_phys_t)], psize);
} else {
- rc = dnode_read(spa, dn, 0, path, psize);
+ rc = dnode_read(mount->spa, dn, 0, path, psize);
}
return (rc);
}
@@ -3979,7 +3980,7 @@
}
strcpy(&path[sb.st_size], p);
- rc = zfs_dnode_readlink(spa, &dn, path, sb.st_size);
+ rc = zfs_dnode_readlink(mount, &dn, path, sb.st_size);
if (rc != 0)
goto done;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Oct 4, 7:26 AM (7 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40152172
Default Alt Text
D60262.id188499.diff (1 KB)
Attached To
Mode
D60262: stand: zfs_dnode_readlink move from spa to mount argument
Attached
Detach File
Event Timeline
Log In to Comment