]> git.sesse.net Git - bcachefs-tools-debian/commit
rust: mount: use libc::c_ulong for flags
authorNicholas Sielicki <linux@opensource.nslick.com>
Wed, 18 Oct 2023 05:59:02 +0000 (00:59 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Wed, 8 Nov 2023 16:32:36 +0000 (11:32 -0500)
commit974d9bf0001b330995c5bde3b5a16adab8037262
tree703c2956b59b592345a055d27e736896684aa2a0
parent29e27cc49234571477c9840a7112270069553abc
rust: mount: use libc::c_ulong for flags

libc proper treats mount flags as an unsigned long, which is usually u64,
except when it isn't. When preparing mount flags, use the libc::c_ulong type
instead of u64 to allow for this.

This fixes compiling this file under armv7l.

Signed-off-by: Nicholas Sielicki <linux@opensource.nslick.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
rust-src/src/cmd_mount.rs