Re: [zfs-discuss] Verify files' checksums

2008-10-26 Thread Peter Schuller
1) When I notice an error in a file that I've copied from a ZFS disk I want to know whether that error is also in the original file on my ZFS disk or if it's only in the copy. This was already addressed but let me do so slightly differently: One of the major points of ZFS checksumming is that,

Re: [zfs-discuss] Verify files' checksums

2008-10-26 Thread Chris Gerhard
A slight nit. Using cat(1) to read the file to /dev/null will not actually cause the data to be read thanks to the magic that is mmap(). If you use dd(1) to read the file then yes you will either get the data and thus know it's blocks match their checksums or dd will give you an error if

Re: [zfs-discuss] Verify files' checksums

2008-10-26 Thread James Litchfield
A nit on the nit... cat does not use mmap for files = 32K in size. For those files it's a simple read() into a buffer and write() it out. Jim --- Chris Gerhard wrote: A slight nit. Using cat(1) to read the file to /dev/null will not actually cause the data to be read thanks to the magic

Re: [zfs-discuss] Verify files' checksums

2008-10-25 Thread Marcus Sundman
Richard Elling [EMAIL PROTECTED] wrote: Marcus Sundman wrote: How can I verify the checksums for a specific file? ZFS doesn't checksum files. AFAIK ZFS checksums all data, including the contents of files. So a file does not have a checksum to verify. I wrote checksums (plural) for a file

Re: [zfs-discuss] Verify files' checksums

2008-10-25 Thread Johan Hartzenberg
On Sat, Oct 25, 2008 at 6:49 PM, Marcus Sundman [EMAIL PROTECTED] wrote: Richard Elling [EMAIL PROTECTED] wrote: Marcus Sundman wrote: How can I verify the checksums for a specific file? ZFS doesn't checksum files. AFAIK ZFS checksums all data, including the contents of files. So a

Re: [zfs-discuss] Verify files' checksums

2008-10-25 Thread Marcus Sundman
Johan Hartzenberg [EMAIL PROTECTED] wrote: On Sat, Oct 25, 2008 at 6:49 PM, Marcus Sundman [EMAIL PROTECTED] wrote: Richard Elling [EMAIL PROTECTED] wrote: Marcus Sundman wrote: How can I verify the checksums for a specific file? ZFS doesn't checksum files. AFAIK ZFS checksums

Re: [zfs-discuss] Verify files' checksums

2008-10-25 Thread Scott Laird
On Sat, Oct 25, 2008 at 1:57 PM, Marcus Sundman [EMAIL PROTECTED] wrote: I don't want to scrub several TiB of data just to verify a 2 MiB file. I want to verify just the data of that file. (Well, I don't mind also verifying whatever other data happens to be in the same blocks.) Just read the

Re: [zfs-discuss] Verify files' checksums

2008-10-25 Thread Ian Collins
Marcus Sundman wrote: I couldn't see anything there describing either how to verify the checksums of individual files or why that would be impossible. If you can read the file, the checksum is OK. If it were not, you would get an I/O error attempting to read it. -- Ian.

Re: [zfs-discuss] Verify files' checksums

2008-10-25 Thread Marcus Sundman
Scott Laird [EMAIL PROTECTED] wrote: On Sat, Oct 25, 2008 at 1:57 PM, Marcus Sundman [EMAIL PROTECTED] wrote: I don't want to scrub several TiB of data just to verify a 2 MiB file. I want to verify just the data of that file. (Well, I don't mind also verifying whatever other data happens

Re: [zfs-discuss] Verify files' checksums

2008-10-25 Thread Marcus Sundman
Ian Collins [EMAIL PROTECTED] wrote: Marcus Sundman wrote: I couldn't see anything there describing either how to verify the checksums of individual files or why that would be impossible. If you can read the file, the checksum is OK. If it were not, you would get an I/O error attempting

Re: [zfs-discuss] Verify files' checksums

2008-10-25 Thread Ian Collins
Marcus Sundman wrote: Ian Collins [EMAIL PROTECTED] wrote: Marcus Sundman wrote: I couldn't see anything there describing either how to verify the checksums of individual files or why that would be impossible. If you can read the file, the checksum is OK. If it were not, you

Re: [zfs-discuss] Verify files' checksums

2008-10-25 Thread Marcus Sundman
Ian Collins [EMAIL PROTECTED] wrote: Marcus Sundman wrote: Are these I/O errors written to stdout or stderr or where? Yes, stderr. OK, good, thanks. You will not be able top open the file. What?! Even if there are errors I want to still be able to read the file to salvage what can be

Re: [zfs-discuss] Verify files' checksums

2008-10-24 Thread Richard Elling
Marcus Sundman wrote: How can I verify the checksums for a specific file? ZFS doesn't checksum files. So a file does not have a checksum to verify. Perhaps you want to keep a digest(1) of the files? -- richard ___ zfs-discuss mailing list

Re: [zfs-discuss] Verify files' checksums

2008-10-24 Thread Johan Hartzenberg
On Sat, Oct 25, 2008 at 4:00 AM, Marcus Sundman [EMAIL PROTECTED] wrote: How can I verify the checksums for a specific file? I have a feeling you are not asking the question about ZFS hosted files specifically. If you downloaded a file, enter cksum filename To get the CRC Check-Sum For more

Re: [zfs-discuss] Verify files' checksums

2008-10-24 Thread Johan Hartzenberg
On Sat, Oct 25, 2008 at 6:59 AM, Johan Hartzenberg [EMAIL PROTECTED]wrote: On Sat, Oct 25, 2008 at 4:00 AM, Marcus Sundman [EMAIL PROTECTED] wrote: How can I verify the checksums for a specific file? I have a feeling you are not asking the question about ZFS hosted files specifically.

Re: [zfs-discuss] Verify files' checksums

2008-10-24 Thread Mark Homoky
For MD5 checksums personally I favour MD5Summer on Windows boxes. Just watch the formatting of the checksum file if you're checking downloads - sometimes it can be a bit picky about linebreaks. I think this file might have been the latest preview release of Netbeans 6.5 (RC1). Looking in