|
From: | Pavel Raiskup |
Subject: | Re: [Bug-tar] --sparse is broken on filesystems where small files may have zero blocks |
Date: | Tue, 29 Oct 2013 09:59:56 +0100 |
User-agent: | KMail/4.11.2 (Linux/3.11.6-200.fc19.x86_64; KDE/4.11.2; x86_64; ; ) |
> #define ST_IS_SPARSE(st) \ > (ST_NBLOCKS (st) \ > - < ((st).st_size / ST_NBLOCKSIZE + ((st).st_size % ST_NBLOCKSIZE != 0))) > + < ((st).st_size / ST_NBLOCKSIZE \ > + + ((st).st_size % ST_NBLOCKSIZE != 0 \ > + && (st).st_size / ST_NBLOCKSIZE != 0))) May the st.st_size / ST_NBLOCKSIZE be greater than 1 and data still stored in inode directly? Seems like on ext4 filesystem it is not possible [1] but does anybody know about exception? [1] https://ext4.wiki.kernel.org/index.php/Ext4_Disk_Layout#Inline_Data Pavel
[Prev in Thread] | Current Thread | [Next in Thread] |