Opened 4 years ago
Last modified 4 years ago
#16606 new bug
Timestamps issue when running on Live-CD
Reported by: | humdinger | Owned by: | nobody |
---|---|---|---|
Priority: | normal | Milestone: | Unscheduled |
Component: | File Systems | Version: | R1/Development |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description
Tested with hrev54702.
This was originally reported by user "ahvi" at haikuports:
Steps to reproduce:
- Boot the live ISO - tested inside virtualbox with nightly 54702 and 54629 - both 32 and 64 bits.
- Press enter at the language selection screen.
- Open a terminal.
- Write the following command:
touch foo && cp -a foo bar
(I also tried --archive or --preserve=all instead of -a - same result as below).
Expected result:
- The file copied, no output.
- Actual result:
The file is copied, but the following message is printed: cp: preserving times for 'bar': invalid argument, and the exit status is 1 (failure).
This was confirmed also using live USB boot by @bitigchi on IRC.
In the comments to that ticket at haikuports, lonemadmax speculates:
You are asking to preserve metadata in the copy but the underlying filesystem or something in between does not like setting the timestamp. May be expected with whatever magic is used in the live image or may be an unknown bug, but it looks like it's for https://dev.haiku-os.org/, not haikuports.
If you don't care about the timestamps you can workaround it adding --no-preserve=timestamps.
And waddlesplash comments:
Indeed, this is likely a bug in
write_overlay
which is an internal Haiku component