Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102756499
D38027.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
509 B
Referenced Files
None
Subscribers
None
D38027.diff
View Options
diff --git a/usr.sbin/makefs/zfs/fs.c b/usr.sbin/makefs/zfs/fs.c
--- a/usr.sbin/makefs/zfs/fs.c
+++ b/usr.sbin/makefs/zfs/fs.c
@@ -255,7 +255,13 @@
fs_populate_path(const fsnode *cur, struct fs_populate_arg *arg,
char *path, size_t sz, int *dirfdp)
{
- if (cur->root == NULL) {
+ if (cur->contents != NULL) {
+ size_t n;
+
+ *dirfdp = AT_FDCWD;
+ n = strlcpy(path, cur->contents, sz);
+ assert(n < sz);
+ } else if (cur->root == NULL) {
size_t n;
*dirfdp = SLIST_FIRST(&arg->dirs)->dirfd;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 17, 5:48 PM (21 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14682813
Default Alt Text
D38027.diff (509 B)
Attached To
Mode
D38027: makefs: handle mtree contents= in zfs
Attached
Detach File
Event Timeline
Log In to Comment