[prev in list] [next in list] [prev in thread] [next in thread]
List: fuse-devel
Subject: [fuse-devel] about fuse real write data size and write return size problem
From: atropos <zhouzihao0111 () gmail ! com>
Date: 2019-11-20 11:43:49
Message-ID: CAAvhbuHsCjPkoPF_SHZOoqY=-xigyjVVwK6JTHF8swAmHjnSKg () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
hi all,
i use libfuse to development a File-Encryption process
and i revise the example passthrough_hp.cc to develop
now=EF=BC=8C the following code is about my confuse
static void sfs_write(fuse_req_t req, fuse_ino_t ino, const char *buf,
size_t size, off_t off, struct fuse_file_info *fi)
{
pwrite(fi->fh, _encode_file_buff, encode_size, encode_off);
fuse_reply_write(req, (size_t)size);
}
size+off < encode_size + encode_off ,because encrypted data will become
larger
if fuse_reply_write function @param size passing in size =EF=BC=8Creal wirt=
e date
size is size+off
if fuse_reply_write function @param size passing in encode_size=EF=BC=8Crea=
l wirte
date size is encode_size+ encode_off
but i want fuse_reply_write function @param size passing in size=EF=BC=8Cre=
al wirte
date size is encode_size+ encode_off
[Attachment #5 (text/html)]
<div dir="ltr">hi all,<br><br>i use libfuse to development a File-Encryption \
process<br><br>and i revise the example passthrough_hp.cc to develop<br><br>now, \
the following code is about my confuse<br><br>static void sfs_write(fuse_req_t req, \
fuse_ino_t ino, const char *buf,<br> size_t size, \
off_t off, struct fuse_file_info *fi)<br>{<br> pwrite(fi->fh, \
_encode_file_buff, encode_size, encode_off);<br> fuse_reply_write(req, \
(size_t)size);<br>}<br><br>size+off < encode_size + encode_off ,because \
encrypted data will become larger<div><br>if fuse_reply_write function @param size \
passing in size ,real wirte date size is size+off </div><div><br>if \
fuse_reply_write function @param size passing in encode_size,real wirte date size \
is encode_size+ encode_off</div><div><br>but i want fuse_reply_write function @param \
size passing in size,real wirte date size is encode_size+ \
encode_off<br></div></div>
--
fuse-devel mailing list
To unsubscribe or subscribe, visit https://lists.sourceforge.net/lists/listinfo/fuse-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic