search for: update_only

Displaying 20 results from an estimated 55 matches for "update_only".

2006 May 29
6
override automatic update of updated_on column
i know that title sounds confusing, but here is the deal: the two columns that we are concerned with for this question are the "updated_on" column and the "views" column. the views column increases everytime a user visits a certain page. like this: @object.update_attributes(:views => @object.views + 1) the problem is that when a user visits the page, it AUTOMATICALLY
2014 Dec 24
0
[PATCH 1/8] extlinux/main.c: support unmounted ext2/3/4 filesystem
...to do, it would stop and error if the device is mounted. More info: * It will use libext2fs to read and write the file. * It will be used when the target is a extX device or file block, and work as before when the target is a directory. * It will be used for both modifing the existing adv when update_only == -1, and install the files to the filesystem. Signed-off-by: Robert Yang <liezhi.yang at windriver.com> --- extlinux/Makefile | 2 +- extlinux/main.c | 96 ++++++++++++++++++++++++++++++++++++++----------------- 2 files changed, 67 insertions(+), 31 deletions(-) diff --git a/extlinux/...
2014 Dec 24
14
[PATCH 0/8] extlinux: support unmounted ext2/3/4 filesystem
...I will remove the repo when these patches are reviewed). More info: * It will use libext2fs to read and write the file. * It will be used when the target is a extX device or file block, and work as before when the target is a directory. * It will be used for both modifing the existing adv when update_only == -1, and install the files to the filesystem. We will begin to use this feature in Yocto Project once it is fine to the syslinux community. Please feel free to give your comments. // Robert The following changes since commit 81ad566f155fac31089fde69c87059b217e7e9b6: NEWS: Update for 6.03 r...
2011 Apr 15
0
[GIT PULL] syslinux command-line
...ready_installed(int devfd) -{ - char buffer[8]; - - xpread(devfd, buffer, 8, 3); - return !memcmp(buffer, "SYSLINUX", 8) || !memcmp(buffer, "EXTLINUX", 8); -} - #ifdef __KLIBC__ static char devname_buf[64]; @@ -766,7 +753,7 @@ int install_loader(const char *path, int update_only) if (devfd < 0) return 1; - if (update_only && !already_installed(devfd)) { + if (update_only && !syslinux_already_installed(devfd)) { fprintf(stderr, "%s: no previous syslinux boot sector found\n", program); close(devfd); diff --git a/libinstaller/s...
2015 Nov 28
0
[PATCH] ignore-non-existing-directory: add variant of ignore-non-existing
...g-directory.test | 26 ++++++++++++++++++++++++++ 4 files changed, 54 insertions(+), 6 deletions(-) create mode 100644 testsuite/ignore-non-existing-directory.test diff --git a/generator.c b/generator.c index 3a4504f..6cafce6 100644 --- a/generator.c +++ b/generator.c @@ -57,6 +57,7 @@ extern int update_only; extern int human_readable; extern int ignore_existing; extern int ignore_non_existing; +extern int ignore_non_existing_dirs; extern int want_xattr_optim; extern int inplace; extern int append_mode; @@ -1323,22 +1324,28 @@ static void recv_generator(char *fname, struct file_struct *file, int...
2016 Jan 16
0
[PATCH v2, resend] ignore-non-existing-directory: add variant of ignore-non-existing
...directory.test | 47 ++++++++++++++++++++++++++++ 4 files changed, 75 insertions(+), 6 deletions(-) create mode 100644 testsuite/ignore-non-existing-directory.test diff --git a/generator.c b/generator.c index 3a4504f..6cafce6 100644 --- a/generator.c +++ b/generator.c @@ -57,6 +57,7 @@ extern int update_only; extern int human_readable; extern int ignore_existing; extern int ignore_non_existing; +extern int ignore_non_existing_dirs; extern int want_xattr_optim; extern int inplace; extern int append_mode; @@ -1323,22 +1324,28 @@ static void recv_generator(char *fname, struct file_struct *file, int...
2015 Nov 28
0
[PATCH v2] ignore-non-existing-directory: add variant of ignore-non-existing
...directory.test | 47 ++++++++++++++++++++++++++++ 4 files changed, 75 insertions(+), 6 deletions(-) create mode 100644 testsuite/ignore-non-existing-directory.test diff --git a/generator.c b/generator.c index 3a4504f..6cafce6 100644 --- a/generator.c +++ b/generator.c @@ -57,6 +57,7 @@ extern int update_only; extern int human_readable; extern int ignore_existing; extern int ignore_non_existing; +extern int ignore_non_existing_dirs; extern int want_xattr_optim; extern int inplace; extern int append_mode; @@ -1323,22 +1324,28 @@ static void recv_generator(char *fname, struct file_struct *file, int...
2024 Mar 18
0
[PATCH] add option to skip files based on age/mtime
...age\n", fname); + } + goto cleanup; + } + if (min_age > 0 && time(NULL)-file->modtime < min_age) { + if (INFO_GTE(SKIP, 1)) { + if (solo_file) + fname = f_name(file, NULL); + rprintf(FINFO, "%s is under min-age\n", fname); + } + goto cleanup; + } + if (update_only > 0 && statret == 0 && file->modtime - sx.st.st_mtime < modify_window) { if (INFO_GTE(SKIP, 1)) rprintf(FINFO, "%s is newer\n", fname); @@ -2156,9 +2175,13 @@ void check_for_finished_files(int itemizing, enum logcode code, int check_redo) if (check_...
2015 Jan 06
3
[PATCH 0/9] linux/syslinux: support ext2/3/4 device
...9;m a little worried about add the extX support to mtools/syslinux: 1) Its name is mtools/syslinux, can't express the libext2fs. 2) The mtools/syslinux isn't fully functioned, for example, as the code shows: if (opt.sectors || opt.heads || opt.reset_adv || opt.set_once || (opt.update_only > 0) || opt.menu_save) { fprintf(stderr, "At least one specified option not yet implemented" " for this installer.\n"); exit(1); How about add an e2fs/syslinux, please ? // Robert > > -hpa > > > >
2015 Sep 10
2
[PATCH v2 1/1] extlinux: fix memory leak
...h %s doesn't match device %s\n", program, path, devname); + free(devname); close(devfd); return -1; } + if (_devname) + *_devname = devname; + else + free(devname); return devfd; } @@ -1468,7 +1483,7 @@ static int install_loader(const char *path, int update_only) { struct stat st, fst; int devfd, rv; - const char *devname; + char *devname = NULL; devfd = open_device(path, &st, &devname); if (devfd < 0) @@ -1508,6 +1523,7 @@ static int install_loader(const char *path, int update_only) sync(); rv = install_...
2014 Dec 24
0
[PATCH 0/8] extlinux: support unmounted ext2/3/4 filesystem
...s are > reviewed). > > More info: > * It will use libext2fs to read and write the file. > * It will be used when the target is a extX device or file block, and > work as before when the target is a directory. > * It will be used for both modifing the existing adv when > update_only == -1, and install the files to the filesystem. > > We will begin to use this feature in Yocto Project once it is fine to > the syslinux community. > I believe we should unify this with the syslinux installer, which is used for unmounted FAT filesystems. Ideally we should unify that...
2015 Sep 09
1
[PATCH v1 1/1] extlinux: fix memory leak
...;%s: path %s doesn't match device %s\n", program, path, devname); + free(devname); close(devfd); return -1; } + if (_devname) + *_devname = devname; + else + free(devname); return devfd; } @@ -1468,7 +1483,7 @@ static int install_loader(const char *path, int update_only) { struct stat st, fst; int devfd, rv; - const char *devname; + char *devname = NULL; devfd = open_device(path, &st, &devname); if (devfd < 0) @@ -1508,6 +1523,7 @@ static int install_loader(const char *path, int update_only) sync(); rv = install_...
2004 Jun 21
0
Problem found and fixed with --update
...lity into > account. > And now his patch. We hope it's helpful: *** rsync.c.orig Tue Mar 23 10:16:15 2004 --- rsync.c Fri Jun 18 19:51:37 2004 *************** *** 33,38 **** --- 33,39 ---- extern int preserve_gid; extern int preserve_perms; extern int make_backups; + extern int update_only; /* *************** *** 235,241 **** --- 236,261 ---- if (make_backups && !make_backup(fname)) return; + /* if the target has been modified since the file list was generated, + just delete the tmp file, leaving the target behind. */ + + if(update_only) { + STRUCT...
2015 Jan 06
0
[PATCH 0/9] linux/syslinux: support ext2/3/4 device
...ls/syslinux: > 1) Its name is mtools/syslinux, can't express the libext2fs. Renaming it is not a problem. > 2) The mtools/syslinux isn't fully functioned, for example, as the code > shows: > if (opt.sectors || opt.heads || opt.reset_adv || opt.set_once > || (opt.update_only > 0) || opt.menu_save) { > fprintf(stderr, > "At least one specified option not yet implemented" > " for this installer.\n"); > exit(1); > > > How about add an e2fs/syslinux, please ? You'd have to do...
2014 Dec 25
2
[PATCH 0/8] extlinux: support unmounted ext2/3/4 filesystem
...; >> More info: >> * It will use libext2fs to read and write the file. >> * It will be used when the target is a extX device or file block, and >> work as before when the target is a directory. >> * It will be used for both modifing the existing adv when >> update_only == -1, and install the files to the filesystem. >> >> We will begin to use this feature in Yocto Project once it is fine to >> the syslinux community. >> > > I believe we should unify this with the syslinux installer, which is > used for unmounted FAT filesystems....
2015 Sep 11
0
[PATCH v2 1/1] extlinux: fix memory leak
...me); > + free(devname); > close(devfd); > return -1; > } > + if (_devname) > + *_devname = devname; > + else > + free(devname); > return devfd; > } > > @@ -1468,7 +1483,7 @@ static int install_loader(const char *path, int > update_only) { > struct stat st, fst; > int devfd, rv; > - const char *devname; > + char *devname = NULL; > > devfd = open_device(path, &st, &devname); > if (devfd < 0) > @@ -1508,6 +1523,7 @@ static int install_loader(const char *path, int > up...
2002 May 16
1
[patch] suggestions for -v option
...rprintf(FINFO,"wrote %.0f bytes read %.0f bytes %.2f bytes/sec\n", (double)stats.total_written, (double)stats.total_read, --- rsync-2.5.5/generator.c.orig Mon Mar 25 06:54:31 2002 +++ rsync-2.5.5/generator.c Tue May 14 16:40:28 2002 @@ -417,7 +417,7 @@ } if (update_only && cmp_modtime(st.st_mtime,file->modtime)>0 && fnamecmp == fname) { - if (verbose > 1) + if (verbose > 0) rprintf(FINFO,"%s is newer\n",fname); return; }
2015 Sep 09
0
[PATCH v1 1/1] extlinux: fix memory leak
...s: path %s doesn't match device %s\n", program, path, devname); + free(devname); close(devfd); return -1; } + if (_devname) + *_devname = devname; + else + free(devname); return devfd; } @@ -1468,7 +1483,7 @@ static int install_loader(const char *path, int update_only) { struct stat st, fst; int devfd, rv; - const char *devname; + char *devname = NULL; devfd = open_device(path, &st, &devname); if (devfd < 0) @@ -1508,6 +1523,7 @@ static int install_loader(const char *path, int update_only) sync(); rv = install_...
2003 Jan 14
3
.rsync-/.rsync+ patch and --link-dest example
...t;.cvsignore") <= MAXPATHLEN - 1) { strcpy(p, ".cvsignore"); diff -ru rsync-2.5.6cvs/options.c rsync-2.5.6cvsJ/options.c --- rsync-2.5.6cvs/options.c Tue Jan 14 09:35:25 2003 +++ rsync-2.5.6cvsJ/options.c Tue Jan 14 09:35:40 2003 @@ -45,6 +45,7 @@ int preserve_times = 0; int update_only = 0; int cvs_exclude = 0; +int rsync_exclude = 0; int dry_run=0; int local_server=0; int ignore_times=0; @@ -237,6 +238,7 @@ rprintf(F," -e, --rsh=COMMAND specify the remote shell\n"); rprintf(F," --rsync-path=PATH specify path to rsync on the remote mac...
2015 Nov 12
1
[PATCH] Unification of ext_(write/read)_adv
...- } - return 0; + if (fs_type == BTRFS) { + /* btrfs "ldlinux.sys" is in 64k blank area */ + return ext_write_adv_offset(devfd, BTRFS_ADV_OFFSET); + } else { + return write_adv(path, cfg); } - return write_adv(path, cfg); } static int install_loader(const char *path, int update_only) -- 2.6.2