diff options
author | Ron Yorston <rmy@pobox.com> | 2019-02-16 12:36:52 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2019-02-16 12:36:52 +0000 |
commit | d82db8e9a618ddd9a11cc57aff37f687abb0effb (patch) | |
tree | bd072e7344a3c3f0eff553d41c0f154c4470736e /Config.in | |
parent | 91e49fbc7b55e8be78ac3ff943e9b7d4494dfe59 (diff) | |
download | busybox-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.in | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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 | ||
466 | config 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 | |||
466 | comment 'Build Options' | 476 | comment 'Build Options' |
467 | 477 | ||
468 | config STATIC | 478 | config STATIC |