Bug 2810 - Add support for nodump flag
Summary: Add support for nodump flag
Status: ASSIGNED
Alias: None
Product: rsync
Classification: Unclassified
Component: core (show other bugs)
Version: 2.6.5
Hardware: All Linux
: P3 enhancement (vote)
Target Milestone: ---
Assignee: Wayne Davison
QA Contact: Rsync QA Contact
URL: http://lists.gnu.org/archive/html/bug...
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-18 15:31 UTC by Benjamin Berg
Modified: 2005-06-21 14:41 UTC (History)
0 users

See Also:


Attachments
Very preliminary nodump support (2.14 KB, patch)
2005-06-21 09:20 UTC, Wayne Davison
no flags Details
fgetflags.c from e2fsprogs (1.83 KB, text/x-csrc)
2005-06-21 14:41 UTC, Benjamin Berg
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin Berg 2005-06-18 15:31:20 UTC
If rsync can check the nodump flag, it can be easier to exclude some files from
the sync. You don't need to create list the files that should be excluded, but
can just set the nodump flag for some files/directories.
Comment 1 Wayne Davison 2005-06-21 09:20:26 UTC
Created attachment 1282 [details]
Very preliminary nodump support

Here is a patch that might work with FreeBSD (I have no way to test it to know
for sure -- this is based on a patch for GNU tar that I saw).  The NODUMP
flag-testing code would need to be improved to be compatible with more systems
before this option would be considered for inclusion in rsync.	Anyone wish to
help with that?
Comment 2 Benjamin Berg 2005-06-21 14:41:39 UTC
Created attachment 1283 [details]
fgetflags.c from e2fsprogs

Hmm, I just had a look at this (I am using linux 2.6.12). It looks like you
need to do an ioctl to get the flags.
I think that the code from e2fsprogs could be used to get the flags for the
check. (attachment)