aboutsummaryrefslogtreecommitdiff
path: root/Config.in
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2019-02-16 12:36:52 +0000
committerRon Yorston <rmy@pobox.com>2019-02-16 12:36:52 +0000
commitd82db8e9a618ddd9a11cc57aff37f687abb0effb (patch)
treebd072e7344a3c3f0eff553d41c0f154c4470736e /Config.in
parent91e49fbc7b55e8be78ac3ff943e9b7d4494dfe59 (diff)
downloadbusybox-w32-d82db8e9a618ddd9a11cc57aff37f687abb0effb.tar.gz
busybox-w32-d82db8e9a618ddd9a11cc57aff37f687abb0effb.tar.bz2
busybox-w32-d82db8e9a618ddd9a11cc57aff37f687abb0effb.zip
win32: make stat(2) fetch additional metadata
Modify the WIN32 implementation of stat(2) to fetch inode number, device id and number of hardlinks. This requires opening a handle to the target file so it will be slower. A number of features can be enabled or start to work: - tar can detect if an archive is being stored in itself; - find can support the -inum and -links options; - ls can display inode numbers; - diff can detect attempts to compare a file with itself; - du has better support for hardlinked files; - cp can detect attempts to copy a file over itself.
Diffstat (limited to 'Config.in')
-rw-r--r--Config.in10
1 files changed, 10 insertions, 0 deletions
diff --git a/Config.in b/Config.in
index 0318a6aff..9f8d4bf7c 100644
--- a/Config.in
+++ b/Config.in
@@ -463,6 +463,16 @@ config FEATURE_EURO
463 requires the OEM code page to be 858. If the OEM code page of 463 requires the OEM code page to be 858. If the OEM code page of
464 the console is 850 when BusyBox starts it's changed to 858. 464 the console is 850 when BusyBox starts it's changed to 858.
465 465
466config FEATURE_EXTRA_FILE_DATA
467 bool "Read additional file metadata (1.3 kb)"
468 default y
469 depends on PLATFORM_MINGW32
470 help
471 Read additional file metadata: device id, inode number and number
472 of hard links. This may slow down some file operations but it
473 permits extra features such as warning of attempts to copy a file
474 onto itself or to store a tar archive in itself.
475
466comment 'Build Options' 476comment 'Build Options'
467 477
468config STATIC 478config STATIC