[Bug 882752] New: make clicfs report exact file size
https://bugzilla.novell.com/show_bug.cgi?id=882752 https://bugzilla.novell.com/show_bug.cgi?id=882752#c0 Summary: make clicfs report exact file size Classification: openSUSE Product: openSUSE 13.1 Version: Final Platform: x86-64 OS/Version: openSUSE 13.1 Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: jaanvajakas@hot.ee QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:29.0) Gecko/20100101 Firefox/29.0 Clicfs can be used to create a random-access archive of a single file by using commands like mkclicfs mytextfile mycompressedfile clicfs mycompressedfile directory However, then "ls -l directory" shows the file size rounded up to 128 MiB, and when trying to read the file, some zero bytes appear appended to the file and after that a read error occurs. It would be nice if clicfs reported the correct file size, to make this use case more convenient. Reproducible: Always Steps to Reproduce: 1. Run the following commands: echo ab >a.txt mkclicfs a.txt a.clicfs clicfs a.clicfs /mnt ls -l /mnt/a.txt 2. Run hexdump /mnt/a.txt 3. Run less /mnt/a.txt Actual Results: 1. ls -l reports the file size as 131072. 2. hexdump output: 0000000 6261 000a 0000 0000 0000 0000 0000 0000 0000010 0000 0000 0000 0000 0000 0000 0000 0000 * hexdump: /mnt/a.txt: Bad address 0001000 3. less asks whether to open the file since it is a binary file and shows ^@ symbols at the end of the file, and also says "read error" when scrolling to the end of the file. Expected Results: 1. ls -l should report 3 as the file size 2. hexdump should not show the trailing zeros and not say "Bad address" 3. less should not complain and not display the ^@ I am using clicfs 1.4.6-4.1.2-x86_64 from the openSUSE 13.1 OSS repository, -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=882752
https://bugzilla.novell.com/show_bug.cgi?id=882752#c
Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=882752
https://bugzilla.novell.com/show_bug.cgi?id=882752#c1
--- Comment #1 from Jaan Vajakas
https://bugzilla.novell.com/show_bug.cgi?id=882752
https://bugzilla.novell.com/show_bug.cgi?id=882752#c2
--- Comment #2 from Stephan Kulow
https://bugzilla.novell.com/show_bug.cgi?id=882752
https://bugzilla.novell.com/show_bug.cgi?id=882752#c3
Jaan Vajakas
https://bugzilla.novell.com/show_bug.cgi?id=882752
https://bugzilla.novell.com/show_bug.cgi?id=882752#c4
--- Comment #4 from Stephan Kulow
https://bugzilla.novell.com/show_bug.cgi?id=882752
https://bugzilla.novell.com/show_bug.cgi?id=882752#c5
--- Comment #5 from Stephan Kulow
https://bugzilla.novell.com/show_bug.cgi?id=882752
https://bugzilla.novell.com/show_bug.cgi?id=882752#c6
--- Comment #6 from Jaan Vajakas
https://bugzilla.novell.com/show_bug.cgi?id=882752
https://bugzilla.novell.com/show_bug.cgi?id=882752#c7
--- Comment #7 from Stephan Kulow
https://bugzilla.novell.com/show_bug.cgi?id=882752
https://bugzilla.novell.com/show_bug.cgi?id=882752#c8
--- Comment #8 from Jaan Vajakas
https://bugzilla.novell.com/show_bug.cgi?id=882752
https://bugzilla.novell.com/show_bug.cgi?id=882752#c9
Stephan Kulow
participants (1)
-
bugzilla_noreply@novell.com