[gpfsug-discuss] Meaning of new fields in Watchfolder output

IBM Spectrum Scale scale at us.ibm.com
Wed Mar 30 14:46:47 BST 2022

Hi Jake,

Can you please look at the below WF related query.

Regards, The Spectrum Scale (GPFS) team


If you feel that your question can benefit other users of  Spectrum Scale
(GPFS), then please post it to the public IBM developerWroks Forum at

If your query concerns a potential software error in Spectrum Scale (GPFS)
and you have an IBM software maintenance contract please contact
1-800-237-5511 in the United States or your local IBM Service Center in
other countries.

The forum is informally monitored as time permits and should not be used
for priority messages to the Spectrum Scale (GPFS) team.

From:	"Hannappel, Juergen" <juergen.hannappel at desy.de>
To:	"gpfsug main discussion list"
            <gpfsug-discuss at spectrumscale.org>
Date:	21-03-2022 06.09 PM
Subject:	[EXTERNAL] [gpfsug-discuss] Meaning of new fields in
            Watchfolder output
Sent by:	"gpfsug-discuss" <gpfsug-discuss-bounces at gpfsug.org>

for a test I read from a file with dd:

dd if=someFile bs=64k of=/dev/null
This will do 2 reads with 64k bytes, one read with 24053 and one final read
with 0 bytes.

I now check the WF json output, looking for the new ReadOffset and
bytesRead fields I get:
 kafkacat -b my-broker -t test1-watch | while read mist; do echo $mist |
python -m json.tool | grep -i read ; done

   "bytesRead": "0",
    "minReadOffset": "9223372036854775807",
    "maxReadOffset": "0",
That is the open()...

    "bytesRead": "65536",
    "minReadOffset": "0",
    "maxReadOffset": "65535",
That is the first read()....

    "bytesRead": "131072",
    "minReadOffset": "0",
    "maxReadOffset": "131071",
WHo reads 2x64k bytes from the beginning? Is the the accumulated read data?

    "bytesRead": "155125",
    "minReadOffset": "0",
    "maxReadOffset": "155124",
And again, now it looks as if in one event the entire file is read?
The documentation (
doesn't explain this....

Dr. Jürgen Hannappel  DESY/IT    Tel.  : +49 40 8998-4616

gpfsug-discuss mailing list
gpfsug-discuss at gpfsug.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gpfsug.org/pipermail/gpfsug-discuss_gpfsug.org/attachments/20220330/8e5e0dc2/attachment-0002.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: graycol.gif
Type: image/gif
Size: 105 bytes
Desc: not available
URL: <http://gpfsug.org/pipermail/gpfsug-discuss_gpfsug.org/attachments/20220330/8e5e0dc2/attachment-0002.gif>

More information about the gpfsug-discuss mailing list