https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=242314

            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: b...@freebsd.org
          Reporter: guy...@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=512 SecPerClust=8 ResSectors=2 FATs=2 RootDirEnts=512 Sectors=57344
Media=0xf8 FATsecs=28 SecPerTrack=63 Heads=16 HiddenSecs=0

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");

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"

Reply via email to