Displaying 2 results from an estimated 2 matches for "is_vfat".
Did you mean:
is_adat
2015 Mar 25
2
[PACTH v2] customize: fix --upload to FAT partition
FAT doesn't support file ownership, so show warning instead
of error.
Fixes RHBZ#1196101
Maros Zatko (1):
customize: fix --upload to FAT partition (RHBZ#1196101)
customize/customize_run.ml | 16 ++++++++++++++--
1 file changed, 14 insertions(+), 2 deletions(-)
--
1.9.3
2015 Mar 25
1
[PACTH v2] customize: fix --upload to FAT partition (RHBZ#1196101)
...est;
- let uid, gid = statbuf.st_uid, statbuf.st_gid in
- g#chown uid gid dest
+
+ (* Check if target resides on FAT filesystem and then don't change
+ * ownership
+ *)
+ let mps = List.map (fun (dev, mp) -> mp, g#vfs_type dev) (g#mountpoints ()) in
+ let is_vfat = List.exists (fun (mp, fs) ->
+ mp = (String.sub dest 0
+ (min (String.length mp) (String.length dest))) && fs = "vfat") mps in
+
+ if not is_vfat then
+ let uid, gid = statbuf.st_uid, statbuf.st_gid in
+ g#chown uid gid dest
+ else
+...