Skip to content

Fix file transfer from Calibre to Remarkable Paper Pro - #13732

Merged
pazos merged 1 commit into
koreader:masterfrom
gray-open:rmpp-calibre
May 5, 2025
Merged

Fix file transfer from Calibre to Remarkable Paper Pro#13732
pazos merged 1 commit into
koreader:masterfrom
gray-open:rmpp-calibre

Conversation

@gray-open

@gray-open gray-open commented May 5, 2025

Copy link
Copy Markdown
Contributor

The output of df wraps on to multiple lines on the rmpp due to the device mapped mount points. Enabling the posix -P option to df prevents this and allow the output to be parsed as normal.

Closes #13731


This change is Reviewable

The output of df wraps on to multiple lines on the rmpp due to the device mapped mount points. Enabling the posix -P option to df prevents this and allow the output to be parsed as normal.
@Frenzie Frenzie added this to the 2025.05 milestone May 5, 2025
Comment thread frontend/util.lua
-- safe way of testing df & awk
local function doCommand(d)
local handle = io.popen("df -k " .. util.shell_escape({d}) .. " 2>/dev/null | awk '$3 ~ /[0-9]+/ { print $2,$3,$4 }' 2>/dev/null || echo ::ERROR::")
local handle = io.popen("df -kP " .. util.shell_escape({d}) .. " 2>/dev/null | awk '$3 ~ /[0-9]+/ { print $2,$3,$4 }' 2>/dev/null || echo ::ERROR::")

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Supported on busybox since 2008, so should be fine.

@pazos
pazos merged commit cf0f803 into koreader:master May 5, 2025
0xstillb pushed a commit to 0xstillb/koreader-thai that referenced this pull request May 9, 2026
The output of df wraps on to multiple lines on the rmpp due to the device mapped mount points. Enabling the posix -P option to df prevents this and allow the output to be parsed as normal.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

File transfer from Calibre to the Remarkable Paper Pro fails

3 participants