Displaying 17 results from an estimated 17 matches for "st_flags".
Did you mean:
sa_flags
2008 Feb 15
4
Revised flags patch
....0.0pre9-flags/backup.c Fri Feb 15 19:33:09 2008
@@ -61,7 +61,17 @@ static int make_simple_backup(const char
return 0;
while (1) {
- if (do_rename(fname, fnamebak) == 0) {
+#ifdef SUPPORT_FLAGS
+ STRUCT_STAT st2;
+
+ link_stat(fname, &st2, 0);
+ make_mutable(fname, st2.st_mode, st2.st_flags);
+#endif
+ if (do_rename(fname, fnamebak) == 0)
+ {
+#ifdef SUPPORT_FLAGS
+ undo_make_mutable(fnamebak, st2.st_mode, st2.st_flags);
+#endif
if (verbose > 1) {
rprintf(FINFO, "backed up %s to %s\n",
fname, fnamebak);
diff -brpu rsync-3.0.0pre9/compat.c rsync-3.0....
2009 Mar 11
0
Odd issue with locked directories and Mac OS X
...ndif
+#ifdef SUPPORT_FORCE_CHANGE
+ if (fd == -1) {
+ stat_x sx;
+ if (do_stat(file->dirname, &sx.st) < 0)
+ rprintf(FINFO, "Failed to stat %s!\n", full_fname(file->dirname));
+ else {
+ if (force_change && make_mutable(file->dirname, sx.st.st_mode,
sx.st.st_flags, force_change) > 0) {
+ fd = do_mkstemp(fnametmp, file->mode & INITACCESSPERMS);
+ undo_make_mutable(file->dirname, sx.st.st_flags);
+ }
+ }
+ }
+#endif
+
if (fd == -1) {
rsyserr(FERROR_XFER, errno, "mkstemp %s failed",
full_fname(fnametmp));
-----------...
2009 Oct 01
0
patch: --force-change for hard links
...if (link(fname1, fname2) == 0)
+ return 0;
+#ifdef SUPPORT_FORCE_CHANGE
+ if (force_change && errno == EPERM) {
+ STRUCT_STAT st;
+
+ if (x_lstat(fname1, &st, NULL) == 0
+ && make_mutable(fname1, st.st_mode, st.st_flags,
force_change) > 0) {
+ int ret = link(fname1, fname2);
+ undo_make_mutable(fname1, st.st_flags);
+ if (ret == 0)
+ return 0;
+ }
+ errno = EPERM;
+ }
+#endif...
2011 Mar 16
3
[Bug 8019] New: Various improvements to the fileflags patch
...QAContact: rsync-qa at samba.org
Created attachment 6298
--> https://bugzilla.samba.org/attachment.cgi?id=6298
Several changes to the fileflags.diff patch
The attached patch improves the following:
- The fileflags variable was occasionally referenced without being initialized
- sx.st.st_flags is initialized in flist.c:send_file_name() so get_xattr has
access to fileflags
- rsync.c: Errors that occur in undo_make_mutable are now reported (I think
this also resolves an issue in which rsync would report "Unknown error (0)")
- rsync.c: make_mutable is now called in set_file_attrs...
2008 Mar 02
3
congrats!
Thanks Wayne and everybody,
This is a huge boost to have a modern rsync for OSX. We're all
grateful. Rob D
PS I did notice that we lost the bsd flags test in 3.0. It was ok in
pre10.... thanks again
bbouncer
Verifying: basic-permissions ... ok
Verifying: timestamps ...
Sub-test: modification time ... ok
ok
Verifying: symlinks ... ok
Verifying:
2009 Mar 03
4
failed assertion in 1.1.8: istream.c: line 81
Hello,
We're having a problem in Dovecot 1.1.8 with a failed assertion on
certain mbox format mailboxes. It happens both with deliver when it
attempts to delier to the mailbox, and with IMAP connections for the
affected box (though I'm not sure what they're doing at the time).
Mar 3 12:55:26 <snip> dovecot: Panic: IMAP(<snip>): file istream.c:
line 81 (i_stream_read):
2008 Apr 14
0
[PATCH] xattrs not set on locked files that already exist on target
...int preserve_fileflags;
extern int preserve_executability;
@@ -445,6 +446,11 @@
if (daemon_chmod_modes && !S_ISLNK(new_mode))
new_mode = tweak_mode(new_mode, daemon_chmod_modes);
+#ifdef SUPPORT_FORCE_CHANGE
+ if (force_change)
+ make_mutable(fname, sxp->st.st_mode, sxp->st.st_flags, force_change);
+#endif
+
#ifdef SUPPORT_ACLS
if (preserve_acls && !S_ISLNK(file->mode) && !ACL_READY(*sxp))
get_acl(fname, sxp);
## Note: I'm not using undo_make_mutable because set_fileflags is
called at the end of this method if we care about fileflags.
2008 Dec 30
3
how to backup/restore of windows file attributes
I use rsync for backing up windows.
After a restore of Desktop.ini I recognize that the hidden attribut and the
system attribut will not been restored.
I know, this are no unix attributes. But is there a way to backup and
restore the windows attributes too?
Thanks
Matthias
--
Don't Panic
2007 Oct 13
1
Using pre2 for backing up a mac
...ow handles all but three items:
1. bsd flags
2. "locked flag" (supposedly finder meta-data)
3. creation date
There is a (broken) patch in the pre2 directory for backing up bsd
flags. I gather these don't exist on linux? On a mac (and I assume
BSD in general) you can get them from st_flags in struct stat and set
them with chflags(2). If linux doesn't support them, it might be
possible to copy the flags into an xattr.
The "locked flag" is actually just the bsd immutable flag; the author
of that article is wrong. So solving the bsd flag issue solves this.
The crea...
2008 Jun 25
2
DO NOT REPLY [Bug 5565] New: xattrs not set on locked files that already exist on target
...preserve_executability;
@@ -445,6 +446,11 @@
if (daemon_chmod_modes && !S_ISLNK(new_mode))
new_mode = tweak_mode(new_mode, daemon_chmod_modes);
+#ifdef SUPPORT_FORCE_CHANGE
+ if (force_change)
+ make_mutable(fname, sxp->st.st_mode, sxp->st.st_flags,
force_change);
+#endif
+
#ifdef SUPPORT_ACLS
if (preserve_acls && !S_ISLNK(file->mode) && !ACL_READY(*sxp))
get_acl(fname, sxp);
## Note: I'm not using undo_make_mutable because set_fileflags is called at the
end of this method if we care about fil...
2008 Jan 26
2
dovecot HEAD, assertion failed after 7193:e5af14239137 changeset
...13824,
st_gid = 671359313, st_rdev = -809573016, st_lspare0 = -809573008,
st_atimespec = {tv_sec = 671359322, tv_nsec = 3690},
st_mtimespec = {tv_sec = 0, tv_nsec = 0}, st_ctimespec = {tv_sec = 0,
tv_nsec = 0}, st_size = 2883503177569592696,
st_blocks = 19440464480, st_blksize = 3485394312, st_flags =
134504965, st_gen = 2264813824, st_lspare1 = 2128748960,
__st_birthtimespec = {tv_sec = 671359313, tv_nsec = -809573016},
st_qspare = {20665263472, 3485394280}}
path = 0x0
#5 0x1c04a120 in mail_get_physical_size (mail=0x0, size_r=0xcfbee598)
at mail.c:100
No locals.
#6 0x0804672b i...
2008 Feb 20
1
(message_parser_parse_next_block): assertion, failed: (ctx->input->eof)
...,
st_nlink = 1, st_uid = 24311, st_gid = 3004,
st_rdev = 0, st_atimespec = {tv_sec = 1203480135, tv_nsec =
388223000}, st_mtimespec = {tv_sec = 1203480167,
tv_nsec = 749911000}, st_ctimespec = {tv_sec = 1203480167, tv_nsec =
749911000}, st_size = 28267, st_blocks = 56,
st_blksize = 4096, st_flags = 0, st_gen = 0, st_lspare = 0,
st_birthtimespec = {tv_sec = 0, tv_nsec = 0}}
path = 0x601298
"/home/username/Maildir/.Drafts/tmp/1203480135.M361150P60831.hill"
output_errno = 0
__PRETTY_FUNCTION__ = "maildir_save_finish_real"
#8 0x000000000043a9bd in...
2008 Jul 08
0
Report this to samba-technical@samba.org, ldap_initialize error
...K
yes
checking for the Darwin initgroups system call... no
checking for fcntl locking... yes
checking for broken (glibc2.1/x86) 64 bit fcntl locking... no
checking for 64 bit fcntl locking... yes
checking for st_blocks in struct stat... yes
checking for st_blksize in struct stat... yes
checking for st_flags in struct stat... no
checking for broken nisplus include files... yes
checking if the realpath function allows a NULL argument... no
checking whether to use AFS clear-text auth... no
checking whether to use AFS fake-kaserver... no
checking whether to use AFS ACL mapping module... no
checking whethe...
2010 Feb 04
3
3.3 and 3.4 compile failure on dbwrap
.... yes
checking for the Darwin initgroups system call... no
checking for fcntl locking... yes
checking for broken (glibc2.1/x86) 64 bit fcntl locking... no
checking for 64 bit fcntl locking... yes
checking for st_blocks in struct stat... yes
checking for st_blksize in struct stat... yes
checking for st_flags in struct stat... no
checking for broken nisplus include files... yes
checking if the realpath function allows a NULL argument... no
checking whether to use AFS clear-text auth... no
checking whether to use AFS fake-kaserver... no
checking whether to use AFS ACL mapping module... no
checking whethe...
2010 May 11
1
Samba 3.5.2 compile on AIX
...for broken (glibc2.1/x86) 64 bit fcntl locking... no
checking for 64 bit fcntl locking... yes
checking for broken posix_fallocate... no
checking for st_blocks in struct stat... yes
checking for blksize_t... yes
checking for blkcnt_t... yes
checking for st_blksize in struct stat... yes
checking for st_flags in struct stat... no
checking for broken nisplus include files... no
checking if the realpath function allows a NULL argument... no
checking whether to use AFS clear-text auth... no
checking whether to use AFS fake-kaserver... no
checking whether to use AFS ACL mapping module... no
checking whether...
2018 Dec 06
3
Build error while upgrading samba 4.9.3
...: not found
Building without DMAPI support: no suitable DMAPI library found
Checking for member st_blocks in struct stat : yes
Checking for member st_blksize in struct stat : yes
Checking for member st_flags in struct stat : no
Checking for header replace.h : no
Checking whether blkcnt_t is 32 bit : no
Checking whether blkcnt_t is 64 bit...
2013 Jan 07
4
3.6.10 file handle leak under ancient 32-bit kernel
...for broken (glibc2.1/x86) 64 bit fcntl locking... no
checking for 64 bit fcntl locking... yes
checking for broken posix_fallocate... yes
checking for st_blocks in struct stat... yes
checking for blksize_t... yes
checking for blkcnt_t... yes
checking for st_blksize in struct stat... yes
checking for st_flags in struct stat... no
checking for broken nisplus include files... yes
checking if the realpath function allows a NULL argument... yes
checking whether to use AFS clear-text auth... no
checking whether to use AFS fake-kaserver... no
checking whether to use AFS ACL mapping module... no
checking wheth...