Displaying 20 results from an estimated 84 matches for "pflag".
Did you mean:
flag
2003 Oct 30
2
sftp client reget reput
...3.7.1p2_sftp/sftp-client.c
--- openssh-3.7.1p2/sftp-client.c 2003-07-02 22:46:57.000000000 -0500
+++ openssh-3.7.1p2_sftp/sftp-client.c 2003-10-16 10:09:51.000000000 -0500
@@ -735,8 +735,13 @@
}
int
+#ifdef REGET
+do_download(struct sftp_conn *conn, char *remote_path, char *local_path,
+ int pflag, int rflag)
+#else
do_download(struct sftp_conn *conn, char *remote_path, char *local_path,
int pflag)
+#endif
{
Attrib junk, *a;
Buffer msg;
@@ -798,8 +803,17 @@
return(-1);
}
- local_fd = open(local_path, O_WRONLY | O_CREAT | O_TRUNC,
- mode | S_IWRITE);
+#ifdef REGET
+ if...
2003 Oct 01
1
3.7.1p2 sftp recurse patch
...tory\n");
printf("rm path Delete remote file\n");
printf("symlink oldpath newpath Symlink remote file\n");
@@ -430,6 +436,106 @@
}
static int
+do_recursive_download(struct sftp_conn *conn, char *remote_path,
+ char *local_path, int pflag)
+{
+ char *remote_tmp, *local_tmp;
+ int err, n;
+ SFTP_DIRENT **d;
+ extern int errno;
+
+ if (recursion && remote_is_dir(conn, remote_path)) {
+ if (!is_dir(local_path)) {
+ /* Create local directory */
+ err = mkdir(local_path, 0777);
+ if (err == -1) {
+ error("Couldn...
2013 Oct 14
0
[PATCH-resend] Implement SSH2_FXF_APPEND
...==============================================================
RCS file: /cvs/openssh/sftp-server.c,v
retrieving revision 1.114
diff -u -p -r1.114 sftp-server.c
--- sftp-server.c 1 Jun 2013 21:31:19 -0000 1.114
+++ sftp-server.c 30 Sep 2013 08:16:57 -0000
@@ -130,6 +130,8 @@ flags_from_portable(int pflags)
} else if (pflags & SSH2_FXF_WRITE) {
flags = O_WRONLY;
}
+ if (pflags & SSH2_FXF_APPEND)
+ flags |= O_APPEND;
if (pflags & SSH2_FXF_CREAT)
flags |= O_CREAT;
if (pflags & SSH2_FXF_TRUNC)
@@ -156,6 +158,8 @@ string_from_portable(int pflags)
PAPPEND("READ"...
2013 Sep 10
2
[Bug 2151] New: Call to upload_dir() has pflag and printflag swapped
https://bugzilla.mindrot.org/show_bug.cgi?id=2151
Bug ID: 2151
Summary: Call to upload_dir() has pflag and printflag swapped
Product: Portable OpenSSH
Version: -current
Hardware: Other
OS: Other
Status: NEW
Severity: trivial
Priority: P5
Component: sftp
Assignee: unassigned-bugs at mindrot.org...
2002 Feb 06
2
SFTP Status Bar..
...@
/* Message ID */
static u_int msg_id = 1;
+/* Progress Meter items */
+off_t statbytes = 0;
+off_t totalbytes = 0;
+char *curfile = NULL;
+
static void
send_msg(int fd, Buffer *m)
{
@@ -671,7 +676,7 @@
int
do_download(int fd_in, int fd_out, char *remote_path, char *local_path,
- int pflag)
+ int pflag, void (*progressbar)(int))
{
int local_fd;
u_int expected_id, handle_len, mode, type, id;
@@ -724,6 +729,11 @@
return(-1);
}
+ totalbytes = a->size;
+ curfile = remote_path;
+ if (progressbar)
+ (progressbar)(0);
+
/* Read from remote and write to local */
offse...
2001 Jun 20
1
SFTP Logging Redux.
...formation. */
+#define CUNAME cuname ? cuname : "UNKNOWN"
+struct passwd *upw;
+uid_t cuid;
+pid_t ppid;
+char *cuname;
+/* portable attibutes, etc. */
typedef struct Stat Stat;
struct Stat {
@@ -115,6 +121,28 @@
return flags;
}
+void
+sflags_from_portable(char *psflags, int pflags)
+{
+ if (pflags & SSH2_FXF_READ)
+ *psflags = 'r';
+ psflags++;
+ if (pflags & SSH2_FXF_WRITE)
+ *psflags = 'w';
+ psflags++;
+ if (pflags & SSH2_FXF_APPEND)
+ *psflags = 'a';
+ psflags++;
+ if (pflags & SSH2_FXF_CREAT)
+ *psflags = 'c';
+ psfla...
2002 Feb 02
0
Version two of progressbar for scp/sftp
...@
/* Message ID */
static u_int msg_id = 1;
+/* Progress Meter items */
+off_t statbytes = 0;
+off_t totalbytes = 0;
+char *curfile = NULL;
+
static void
send_msg(int fd, Buffer *m)
{
@@ -670,7 +675,7 @@
int
do_download(int fd_in, int fd_out, char *remote_path, char *local_path,
- int pflag)
+ int pflag, void (*progressbar)(int))
{
int local_fd;
u_int expected_id, handle_len, mode, type, id;
@@ -723,6 +728,11 @@
return(-1);
}
+ totalbytes = a->size;
+ curfile = remote_path;
+ if (progressbar)
+ (progressbar)(0);
+
/* Read from remote and write to local */
offse...
2002 Nov 05
2
[PATCH] fix sftp to preserve permissions and uid/gid
...e = 0666;
! }
if ((a->flags & SSH2_FILEXFER_ATTR_PERMISSIONS) &&
(a->perm & S_IFDIR)) {
error("Cannot download a directory: %s", remote_path);
***************
*** 931,939 ****
/* Override umask and utimes if asked */
#ifdef HAVE_FCHMOD
! if (pflag && fchmod(local_fd, mode) == -1)
#else
! if (pflag && chmod(local_path, mode) == -1)
#endif /* HAVE_FCHMOD */
error("Couldn't set mode on \"%s\": %s", local_path,
strerror(errno));
--- 984,992 ----
/* Override umask and utimes if...
2002 Mar 15
4
PATCH: sftp-server logging.
...n "No such file or directory";
+ case SSH2_FX_PERMISSION_DENIED:
+ return "Permission denied.";
+ case SSH2_FX_BAD_MESSAGE:
+ return "Bad message";
+ default:
+ return "Unknown error";
+ }
+ }
+ #endif
+
static int
flags_from_portable(int pflags)
{
***************
*** 115,120 ****
--- 143,173 ----
return flags;
}
+ #ifdef SFTP_LOGGING
+ void
+ sflags_from_portable(char *psflags, int pflags)
+ {
+ if (pflags & SSH2_FXF_READ)
+ *psflags = 'r';
+ psflags++;
+ if (pflags & SSH2_FXF_WRITE)
+ *psflags = 'w...
2013 Jun 27
0
[LLVMdev] Proposal: extended MDString syntax
...you to include IR verbatim just by indenting it.
The IR module should be optional when serializing MI. The back-pointers from MI to IR are not required, and I can imagine many useful test cases that won’t need them.
module: |
define void @linkit(i8* %source) #0 {
entry:
%.b243 = load i1* @Pflag, align 1
%cond = select i1 %.b243, i32 (i8*, %struct.stat.6.13.20.64*)* @lstat, i32 (i8*, %struct.stat.6.13.20.64*)* @stat
%call = call signext i32 %cond(i8* %source, %struct.stat.6.13.20.64* undef) #2
ret void
}
@Pflag = external unnamed_addr global i1
declare signext i32 @lstat(...
2002 Jan 03
3
[PATCH] Improving sftp client performance
...andle_len);
+ buffer_put_int64(m, rq->offset);
+ buffer_put_int(m, rq->len);
+ send_msg(fd, m);
+ debug3("Sent message SSH2_FXP_READ I:%d O:%llu S:%u",
+ rq->id, rq->offset, rq->len);
+}
+
int
do_init(int fd_in, int fd_out)
{
@@ -674,12 +721,15 @@
int pflag)
{
int local_fd;
- u_int expected_id, handle_len, mode, type, id;
+ u_int handle_len, mode, type, id;
u_int64_t offset;
char *handle;
Buffer msg;
Attrib junk, *a;
int status;
+ struct request req[REQUEST_QUEUE_SIZE];
+ int num_req = 0, max_req = 1, reply;
+ int write_error = 0, read_er...
2018 Dec 06
0
[PATCH 1/3] drm/qxl: allow both PRIV and VRAM placement for QXL_GEM_DOMAIN_SURFACE
...d qxl_ttm_placement_from_domain(struct qxl_bo *qbo, u32 domain, bool pinned)
qbo->placement.placement = qbo->placements;
qbo->placement.busy_placement = qbo->placements;
- if (domain == QXL_GEM_DOMAIN_VRAM)
- qbo->placements[c++].flags = TTM_PL_FLAG_CACHED | TTM_PL_FLAG_VRAM | pflag;
if (domain == QXL_GEM_DOMAIN_SURFACE)
qbo->placements[c++].flags = TTM_PL_FLAG_CACHED | TTM_PL_FLAG_PRIV | pflag;
+ if (domain == QXL_GEM_DOMAIN_SURFACE || domain == QXL_GEM_DOMAIN_VRAM)
+ qbo->placements[c++].flags = TTM_PL_FLAG_CACHED | TTM_PL_FLAG_VRAM | pflag;
if (domain == QXL_G...
2018 Dec 12
0
[PATCH v2 07/18] drm/qxl: allow both PRIV and VRAM placement for QXL_GEM_DOMAIN_SURFACE
...rivers/gpu/drm/qxl/qxl_object.c
@@ -60,8 +60,10 @@ void qxl_ttm_placement_from_domain(struct qxl_bo *qbo, u32 domain, bool pinned)
qbo->placement.busy_placement = qbo->placements;
if (domain == QXL_GEM_DOMAIN_VRAM)
qbo->placements[c++].flags = TTM_PL_FLAG_CACHED | TTM_PL_FLAG_VRAM | pflag;
- if (domain == QXL_GEM_DOMAIN_SURFACE)
+ if (domain == QXL_GEM_DOMAIN_SURFACE) {
qbo->placements[c++].flags = TTM_PL_FLAG_CACHED | TTM_PL_FLAG_PRIV | pflag;
+ qbo->placements[c++].flags = TTM_PL_FLAG_CACHED | TTM_PL_FLAG_VRAM | pflag;
+ }
if (domain == QXL_GEM_DOMAIN_CPU)
qbo->p...
2019 Oct 17
0
[PATCH 5/5] drm/qxl: allocate small objects top-down
...t.c
index 927ab917b834..ad336c98a0cf 100644
--- a/drivers/gpu/drm/qxl/qxl_object.c
+++ b/drivers/gpu/drm/qxl/qxl_object.c
@@ -54,9 +54,14 @@ bool qxl_ttm_bo_is_qxl_bo(struct ttm_buffer_object *bo)
void qxl_ttm_placement_from_domain(struct qxl_bo *qbo, u32 domain, bool pinned)
{
u32 c = 0;
- u32 pflag = pinned ? TTM_PL_FLAG_NO_EVICT : 0;
+ u32 pflag = 0;
unsigned int i;
+ if (pinned)
+ pflag |= TTM_PL_FLAG_NO_EVICT;
+ if (qbo->tbo.base.size <= PAGE_SIZE)
+ pflag |= TTM_PL_FLAG_TOPDOWN;
+
qbo->placement.placement = qbo->placements;
qbo->placement.busy_placement = qbo->...
2006 Oct 09
0
ReconRefFrames() - Possible Bug?
...n:
around line 1133 lib\dct_decode.c
fn[0]=i-1;
fn[1]=i-FragsAcross-1;
fn[2]=i-FragsAcross;
fn[3]=i-FragsAcross+1;
/* fragment valid for prediction use if coded and it comes
from same frame as the one we are predicting */
for(k=pcount=wpc=0; k<4; k++) {
int pflag;
pflag=1<<k;
if((bc_mask[WhichCase]&pflag) &&
pbi->display_fragments[fn[k]] &&
(Mode2Frame[pbi->FragCodingMethod[fn[k]]] ==
WhichFrame)){
v[pcount]=pbi->QFragData[fn[k]][0];...
2000 Aug 18
0
[PATCH] Support symlinks in scp of openssh 2
...mbolic links as such, instead of following them and
+copying their targets.
.It Fl p
Preserves modification times, access times, and modes from the
Index: scp.c
--- scp.c.prev
+++ scp.c Fri Aug 18 04:14:40 2000
@@ -253,5 +253,5 @@ struct passwd *pwd;
uid_t userid;
int errs, remin, remout;
-int pflag, iamremote, iamrecursive, targetshouldbedirectory;
+int linkflag, pflag, iamremote, iamrecursive, targetshouldbedirectory;
#define CMDNEEDS 64
@@ -280,5 +280,5 @@ main(argc, argv)
memset(sshoptions,0,sizeof(sshoptions));
sshoptionsend = sshoptions;
- while ((ch = getopt(argc, argv, "dfp...
2010 Sep 17
3
ZFS Dataset lost structure
...gid 60001
atime Sun Oct 18 00:49:05 2009
mtime Thu Sep 9 16:22:14 2010
ctime Thu Sep 9 16:22:14 2010
crtime Sun Oct 18 00:49:05 2009
gen 444453
mode 100777
size 274877906945
parent 3
links 1
pflags 40800000104
xattr 0
rdev 0x0000000000000000
if i further investigate:
zdb -ddddd dataset 7
Dataset store/nfs/ICLOS/prod/mail-cts [ZPL], ID 4525, cr_txg 91826, 149G, 5 objects, rootbp DVA[0]=<0:6654f24000:200> DVA[1]=<1:1a1e3c3600:200> [L0 D
MU objset] fletcher4...
2002 Jan 06
3
sftp/scp performance testing
Folks, I've noticed poor performance using sftp. If anyone has any
advice on how to improve performance, I'd like to hear it. Test simply
involved transferring a single 143MB MP3 file using defaults for all the
program configs. The opensshd 3.0.2p1 server is used in all tests.
Software:
openssh suite 3.0.2p1
psftp (putty sftp client) latest dev snapshot
pscp (putty scp client) latest
2004 Aug 31
1
[PATCH] supporting a remote scp path option in scp
...ssh_program = _PATH_SSH_PROGRAM;
+/* This is the program to execute for the remote scp. ("scp" or -e) */
+char *scp_remote_program = _PATH_SCP_REMOTE_PROGRAM;
+
/* This is used to store the pid of ssh_program */
pid_t do_cmd_pid = -1;
@@ -198,8 +201,8 @@
int errs, remin, remout;
int pflag, iamremote, iamrecursive, targetshouldbedirectory;
-#define CMDNEEDS 64
-char cmd[CMDNEEDS]; /* must hold "rcp -r -p -d\0" */
+char *rscpcmd; /* must hold scp_remote_program + "-r -p -d\0" */
+
int response(void);
void rsource(char *, struc...
2002 Dec 05
2
[Bug 452] sftp does not abort when commands given via -b fail
http://bugzilla.mindrot.org/show_bug.cgi?id=452
------- Additional Comments From spin at avalon.net 2002-12-06 03:15 -------
Forgot to mention that this is 3.1p1-6 RedHat RPM.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.