@@ -440,6 +440,23 @@ For example::
440
440
fsconfig(fs_fd, FSCONFIG_SET_STRING, "datadir+", "/do2", 0);
441
441
442
442
443
+ Specifying layers via file descriptors
444
+ --------------------------------------
445
+
446
+ Since kernel v6.13, overlayfs supports specifying layers via file descriptors in
447
+ addition to specifying them as paths. This feature is available for the
448
+ "datadir+", "lowerdir+", "upperdir", and "workdir+" mount options with the
449
+ fsconfig syscall from the new mount api::
450
+
451
+ fsconfig(fs_fd, FSCONFIG_SET_FD, "lowerdir+", NULL, fd_lower1);
452
+ fsconfig(fs_fd, FSCONFIG_SET_FD, "lowerdir+", NULL, fd_lower2);
453
+ fsconfig(fs_fd, FSCONFIG_SET_FD, "lowerdir+", NULL, fd_lower3);
454
+ fsconfig(fs_fd, FSCONFIG_SET_FD, "datadir+", NULL, fd_data1);
455
+ fsconfig(fs_fd, FSCONFIG_SET_FD, "datadir+", NULL, fd_data2);
456
+ fsconfig(fs_fd, FSCONFIG_SET_FD, "workdir", NULL, fd_work);
457
+ fsconfig(fs_fd, FSCONFIG_SET_FD, "upperdir", NULL, fd_upper);
458
+
459
+
443
460
fs-verity support
444
461
-----------------
445
462
0 commit comments