aboutsummaryrefslogtreecommitdiff
path: root/e2fsprogs/e2fs_lib.c
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2026-06-15 12:36:38 +0100
committerRon Yorston <rmy@pobox.com>2026-06-15 12:43:03 +0100
commitd4fefaceac846bbf8acbb110924b0caff6df698e (patch)
treede208d030a8955772f6cd7b156a264b84341c3d4 /e2fsprogs/e2fs_lib.c
parent862f87a8725d5cc9693021066869e94512d5d8e1 (diff)
downloadbusybox-w32-mount_point.tar.gz
busybox-w32-mount_point.tar.bz2
busybox-w32-mount_point.zip
df,lsattr: support Unix-like mount pointsmount_point
Update 'lsattr' to distinguish between mount points and junctions. Use the new 'mntent' functions in 'df' to display mount points as well as drive letters. If mount point is associated with a drive letter this is displayed as the filesystem. The Windows-specific '-w' option forces the volume name to be displayed instead, if avaialable. Adds 87-111 bytes. Signed-off-by: Ron Yorston <rmy@pobox.com>
Diffstat (limited to 'e2fsprogs/e2fs_lib.c')
-rw-r--r--e2fsprogs/e2fs_lib.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/e2fsprogs/e2fs_lib.c b/e2fsprogs/e2fs_lib.c
index dd75ebc18..45a6430e8 100644
--- a/e2fsprogs/e2fs_lib.c
+++ b/e2fsprogs/e2fs_lib.c
@@ -132,6 +132,9 @@ void print_e2flags_long(struct stat *sb)
132 case IO_REPARSE_TAG_SYMLINK: 132 case IO_REPARSE_TAG_SYMLINK:
133 ln = "Symbolic_Link"; 133 ln = "Symbolic_Link";
134 break; 134 break;
135 case BB_REPARSE_TAG_JUNCTION:
136 ln = "Junction";
137 break;
135 case IO_REPARSE_TAG_MOUNT_POINT: 138 case IO_REPARSE_TAG_MOUNT_POINT:
136 ln = "Mount_Point"; 139 ln = "Mount_Point";
137 break; 140 break;
@@ -174,6 +177,9 @@ void print_e2flags(struct stat *sb)
174 case IO_REPARSE_TAG_SYMLINK: 177 case IO_REPARSE_TAG_SYMLINK:
175 c = 'l'; 178 c = 'l';
176 break; 179 break;
180 case BB_REPARSE_TAG_JUNCTION:
181 c = 'j';
182 break;
177 case IO_REPARSE_TAG_MOUNT_POINT: 183 case IO_REPARSE_TAG_MOUNT_POINT:
178 c = 'm'; 184 c = 'm';
179 break; 185 break;