Date: Sat, 30 Nov 2019 09:22:39 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 242314] newfs_msdos(8) -A option prevents using -o but usage says incompatible with -r Message-ID: <bug-242314-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D242314 Bug ID: 242314 Summary: newfs_msdos(8) -A option prevents using -o but usage says incompatible with -r Product: Base System Version: 12.1-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: guyyur@gmail.com newfs_msdos prevents using -A with -o but complains on -A and -r Doesn't allow -o but complains on -r # newfs_msdos -F 16 -c 8 -o 8192 -m 0xF8 -A /dev/ada5s1 newfs_msdos: align (-A) is incompatible with -r Allows -r # newfs_msdos -F 16 -c 8 -r 2 -m 0xF8 -A /dev/ada5s1 /dev/ada5s1: 57248 sectors in 7156 FAT16 clusters (4096 bytes/cluster) BytesPerSec=3D512 SecPerClust=3D8 ResSectors=3D2 FATs=3D2 RootDirEnts=3D512= Sectors=3D57344 Media=3D0xf8 FATsecs=3D28 SecPerTrack=3D63 Heads=3D16 HiddenSecs=3D0 Looking at the changes of D15672, I think -r should be blocked when -A is passed so it should be checking if (o.reserved_sectors) errx(1, "align (-A) is incompatible with -r"); instead of if (o.hidden_sectors_set) errx(1, "align (-A) is incompatible with -r"); --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-242314-227>